1515# ---------------------------------------------------------------------------------------------------------
1616
1717
18-
1918__name__ = "pymoo"
2019__author__ = "Julian Blank"
2120__url__ = "https://pymoo.org"
3332 packages = find_packages (include = ['pymoo' , 'pymoo.*' ]),
3433 include_package_data = True ,
3534 exclude_package_data = {
36- '' : ['*.c' , '*.cpp' , '*.pyx' ],
35+ '' : ['*.c' , '*.cpp' , '*.pyx' ],
3736 },
3837 install_requires = ['numpy>=1.15' ,
3938 'scipy>=1.1' ,
5554 'Programming Language :: Python :: 3.8' ,
5655 'Programming Language :: Python :: 3.9' ,
5756 'Programming Language :: Python :: 3.10' ,
57+ 'Programming Language :: Python :: 3.11' ,
5858 'Topic :: Scientific/Engineering' ,
5959 'Topic :: Scientific/Engineering :: Artificial Intelligence' ,
6060 'Topic :: Scientific/Engineering :: Mathematics'
6161 ]
6262)
6363
64+
6465# ---------------------------------------------------------------------------------------------------------
6566# OTHER METADATA
6667# ---------------------------------------------------------------------------------------------------------
@@ -75,14 +76,14 @@ def readme():
7576data ['long_description' ] = readme ()
7677data ['long_description_content_type' ] = 'text/x-rst'
7778
78-
7979# ---------------------------------------------------------------------------------------------------------
8080# OPTIONS
8181# ---------------------------------------------------------------------------------------------------------
8282
8383
8484parser = argparse .ArgumentParser ()
85- parser .add_argument ('--nopyx' , dest = 'nopyx' , action = 'store_true' , help = 'Whether the pyx files shall be considered at all.' )
85+ parser .add_argument ('--nopyx' , dest = 'nopyx' , action = 'store_true' ,
86+ help = 'Whether the pyx files shall be considered at all.' )
8687parser .add_argument ('--nocython' , dest = 'nocython' , action = 'store_true' , help = 'Whether pyx files shall be cythonized.' )
8788parser .add_argument ('--nolibs' , dest = 'nolibs' , action = 'store_true' , help = 'Whether the libraries should be compiled.' )
8889args , _ = parser .parse_known_args ()
@@ -158,6 +159,7 @@ def build_extension(self, ext):
158159 ext = [Extension (f"pymoo.cython.{ source [:- 4 ]} " , [source ]) for source in pyx ]
159160 else :
160161 from Cython .Build import cythonize
162+
161163 ext = cythonize ("pymoo/cython/*.pyx" )
162164
163165 if not args .nolibs :
0 commit comments