-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Version information.""" | ||
|
||
# The following line *must* be the last in the module, exactly as formatted: | ||
__version__ = "0.4.6" | ||
__version__ = "0.4.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools.extension import Extension | ||
import os | ||
from Cython.Build import cythonize | ||
import numpy as np | ||
|
||
# Read http://peterdowns.com/posts/first-time-with-pypi.html to figure out how | ||
|
@@ -19,28 +18,32 @@ | |
'wraparound': False, | ||
} | ||
|
||
extensions = cythonize( | ||
[Extension('ConfigSpace.hyperparameters', | ||
extensions = [ | ||
Extension('ConfigSpace.hyperparameters', | ||
sources=['ConfigSpace/hyperparameters.pyx',], | ||
include_dirs=[np.get_include()]), | ||
Extension('ConfigSpace.forbidden', | ||
include_dirs=[np.get_include()], | ||
compiler_directives=compiler_directives), | ||
Extension('ConfigSpace.forbidden', | ||
sources=['ConfigSpace/forbidden.pyx'], | ||
include_dirs=[np.get_include()]), | ||
Extension('ConfigSpace.conditions', | ||
include_dirs=[np.get_include()], | ||
compiler_directives=compiler_directives), | ||
Extension('ConfigSpace.conditions', | ||
sources=['ConfigSpace/conditions.pyx'], | ||
include_dirs=[np.get_include()]), | ||
Extension('ConfigSpace.c_util', | ||
include_dirs=[np.get_include()], | ||
compiler_directives=compiler_directives), | ||
Extension('ConfigSpace.c_util', | ||
sources=['ConfigSpace/c_util.pyx'], | ||
include_dirs=[np.get_include()]), | ||
Extension('ConfigSpace.util', | ||
include_dirs=[np.get_include()], | ||
compiler_directives=compiler_directives), | ||
Extension('ConfigSpace.util', | ||
sources=['ConfigSpace/util.py'], | ||
include_dirs=[np.get_include()]), | ||
Extension('ConfigSpace.configuration_space', | ||
include_dirs=[np.get_include()], | ||
compiler_directives=compiler_directives), | ||
Extension('ConfigSpace.configuration_space', | ||
sources=['ConfigSpace/configuration_space.py'], | ||
include_dirs=[np.get_include()]), | ||
], | ||
compiler_directives=compiler_directives, | ||
) | ||
include_dirs=[np.get_include()], | ||
compiler_directives=compiler_directives), | ||
] | ||
|
||
def read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
@@ -65,6 +68,10 @@ def read(fname): | |
"Marius Lindauer", "Jorn Tuyls"]), | ||
author_email='[email protected]', | ||
test_suite="nose.collector", | ||
# https://stackoverflow.com/questions/24923003/organizing-a-package-with-cython | ||
setup_requires=[ | ||
'Cython', | ||
], | ||
install_requires=[ | ||
'numpy', | ||
'pyparsing', | ||
|
@@ -78,6 +85,7 @@ def read(fname): | |
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Development Status :: 4 - Beta', | ||
'Natural Language :: English', | ||
'Intended Audience :: Developers', | ||
|