1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import os
16-
1715from setuptools import setup , Extension
1816from setuptools .command .build_ext import build_ext
1917from Cython .Build import cythonize
@@ -39,7 +37,6 @@ def build_extensions(self):
3937 compile_args = self .extra_compile_args [compiler ]
4038 for ext in self .extensions :
4139 ext .extra_compile_args = compile_args
42- print (dir (ext ))
4340
4441 link_args = self .extra_link_args [compiler ]
4542 for ext in self .extensions :
@@ -48,57 +45,13 @@ def build_extensions(self):
4845 super ().build_extensions ()
4946
5047
51- # Load package info, without importing the package
52- basedir = os .path .dirname (os .path .abspath (__file__ ))
53- package_info_path = os .path .join (basedir , "greedy" , "package_info.py" )
54- package_info = {}
55- with open (package_info_path , encoding = 'utf-8' ) as f :
56- exec (f .read (), package_info )
57-
58- packages = ['greedy' ]
59-
60- # Package requirements, minimal pinning
61- install_requires = ['numpy>=1.16.0,<2.0.0' , 'dimod>=0.9.2,<0.10.0' ]
62-
63- # Package extras requirements
64- extras_require = {
65- 'test' : ['coverage' , 'mock' , 'parameterized' , 'dwave-system>=1.0.0' ],
66- }
67-
6848extensions = [Extension (
6949 name = 'greedy.descent' ,
7050 sources = ['greedy/descent.pyx' ],
7151 include_dirs = [numpy .get_include ()]
7252)]
7353
74- classifiers = [
75- 'License :: OSI Approved :: Apache Software License' ,
76- 'Operating System :: OS Independent' ,
77- 'Development Status :: 3 - Alpha' ,
78- 'Programming Language :: Python :: 3' ,
79- 'Programming Language :: Python :: 3.6' ,
80- 'Programming Language :: Python :: 3.7' ,
81- 'Programming Language :: Python :: 3.8' ,
82- 'Programming Language :: Python :: 3.9' ,
83- ]
84-
85- python_requires = '>=3.6'
86-
8754setup (
88- name = package_info ['__package_name__' ],
89- version = package_info ['__version__' ],
90- author = package_info ['__author__' ],
91- author_email = package_info ['__author_email__' ],
92- description = package_info ['__description__' ],
93- long_description = open ('README.rst' , encoding = 'utf-8' ).read (),
94- url = package_info ['__url__' ],
95- license = package_info ['__license__' ],
96- packages = packages ,
97- python_requires = python_requires ,
98- install_requires = install_requires ,
99- extras_require = extras_require ,
10055 ext_modules = cythonize (extensions ),
10156 cmdclass = {'build_ext' : build_ext_with_args },
102- classifiers = classifiers ,
103- zip_safe = False ,
10457)
0 commit comments