Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
PEP8 setup.py, update bindings dir default
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 22, 2013
1 parent 4ab80d7 commit fdea7ca
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions setup.py
@@ -1,19 +1,16 @@
#!/usr/bin/env python
# -*- coding: latin-1 -*-

import os
import os.path
import sys

def get_config_schema():
from aksetup_helper import ConfigSchema, Option, \
from aksetup_helper import ConfigSchema, \
IncludeDir, LibraryDir, Libraries, BoostLibraries, \
Switch, StringListOption, make_boost_base_options

return ConfigSchema(make_boost_base_options() + [
BoostLibraries("python"),

IncludeDir("BOOST_BINDINGS", []),
IncludeDir("BOOST_BINDINGS", ["../boost-numeric-bindings"]),

Switch("HAVE_BLAS", False, "Whether to build with support for BLAS"),
LibraryDir("BLAS", []),
Expand All @@ -24,7 +21,7 @@ def get_config_schema():
Libraries("LAPACK", ["blas"]),

Switch("COMPILE_DASKR", True, "Whether to build (with) DASKR"),
Switch("COMPILE_XERBLA", False,
Switch("COMPILE_XERBLA", False,
"Whether to compile and add our own XERBLA routine."
"ATLAS LAPACK does not have one."),

Expand All @@ -37,15 +34,13 @@ def get_config_schema():
LibraryDir("UMFPACK", []),
Libraries("UMFPACK", ["umfpack", "amd"]),

StringListOption("CXXFLAGS", [],
StringListOption("CXXFLAGS", [],
help="Any extra C++ compiler options to include"),
StringListOption("LDFLAGS", [],
StringListOption("LDFLAGS", [],
help="Any extra linker options to include"),
])




def main():
import glob
import os
Expand Down Expand Up @@ -121,13 +116,14 @@ def handle_component(comp):
version="0.92.4",
description="Added functionality for PyUblas",
long_description="""
PyUblasExt is a companion to
PyUblasExt is a companion to
`PyUblas <http://mathema.tician.de/software/pyublas>`_
and exposes a variety of useful additions to it:
* A cross-language "operator" class for building matrix-free algorithms
* CG and BiCGSTAB linear solvers that use this operator class
* An `ARPACK <http://mathema.tician.de/software/arpack>`_ interface that also uses this operator class
* An `ARPACK <http://mathema.tician.de/software/arpack>`_ interface
that also uses this operator class
* An UMFPACK interface for PyUblas's sparse matrices
* An interface to the `DASKR <http://www.netlib.org/ode/>`_ ODE solver.
Expand All @@ -136,7 +132,7 @@ def handle_component(comp):
""",
author=u"Andreas Kloeckner",
author_email="inform@tiker.net",
license = "BSD",
license="MIT",
url="http://mathema.tician.de/software/pyublas/pyublasext",
classifiers=[
'Development Status :: 4 - Beta',
Expand All @@ -163,7 +159,7 @@ def handle_component(comp):

packages=["pyublasext"],
ext_package="pyublasext",
ext_modules=[ PyUblasExtension( "_internal",
ext_modules=[PyUblasExtension("_internal",
[
"src/wrapper/operation.cpp",
"src/wrapper/op_daskr.cpp",
Expand All @@ -190,7 +186,5 @@ def handle_component(comp):
cmdclass={'build_py': build_py})




if __name__ == '__main__':
main()

0 comments on commit fdea7ca

Please sign in to comment.