forked from aspuru-guzik-group/gryffin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (48 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# import versioneer
# import numpy as np
from setuptools import setup, find_packages
from distutils.extension import Extension
from distutils.command.build import build as build_orig
#===============================================================================
def readme():
with open('README.md', 'r') as content:
return content.read()
#===============================================================================
ext_modules = [
Extension('gryffin.bayesian_network.kernel_evaluations',
['src/gryffin/bayesian_network/kernel_evaluations.c']),
Extension('gryffin.bayesian_network.kernel_prob_reshaping',
['src/gryffin/bayesian_network/kernel_prob_reshaping.c']),]
# Preinstall numpy
from setuptools import dist
dist.Distribution().fetch_build_eggs(['numpy>=1.10'])
import numpy as np
def requirements():
with open('requirements.txt', 'r') as content:
return content.readlines()
#===============================================================================
setup(name='gryffin',
#version=versioneer.get_version(),
version='0.1.1',
# cmdclass=versioneer.get_cmdclass(),
description='Bayesian optimization for categorical variables',
long_description=readme(),
long_description_content_type='text/markdown',
classifiers=[
'Intended Audience :: Science/Research',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
],
url='https://github.com/aspuru-guzik-group/gryffin',
author='Florian Hase',
packages=find_packages('./src'),
package_dir={'': 'src'},
zip_safe=False,
ext_modules=ext_modules,
tests_require=['pytest'],
include_dirs=np.get_include(),
install_requires=requirements(),
python_requires='>=3.6',
)