@@ -37,25 +37,17 @@ def run(self):
3737 self .build_extension (ext )
3838
3939 def build_extension (self , ext ):
40- use_cholmod = os .environ .get ( "USE_CHOLMOD" , "1" )
4140 n_threads_str = os .environ .get ( "N_THREADS" , "1" )
4241 n_threads = int (n_threads_str )
4342
44- cholmod_str = "-DPOLYSOLVE_WITH_CHOLMOD=OFF" if use_cholmod == "0" else "-DPOLYSOLVE_WITH_CHOLMOD=ON"
45-
46-
4743 extdir = os .path .join (os .path .abspath (os .path .dirname (
4844 self .get_ext_fullpath (ext .name ))), "polyfempy" )
4945
5046 python_include_directory = str (get_python_inc ())
5147
5248 cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir ,
5349 '-DPYTHON_EXECUTABLE=' + sys .executable ,
54- '-DPYTHON_INCLUDE_DIR=' + python_include_directory ,
55- cholmod_str ,
56- '-DPOLYSOLVE_WITH_AMGCL=OFF' ,
57- '-DPOLYSOLVE_WITH_MKL=OFF' ,
58- '-DPOLYSOLVE_WITH_SPECTRA=OFF' ]
50+ '-DPYTHON_INCLUDE_DIR=' + python_include_directory ]
5951
6052 cfg = 'Debug' if self .debug else 'Release'
6153 build_args = ['--config' , cfg ]
@@ -93,9 +85,6 @@ def build_extension(self, ext):
9385
9486setup (
9587 name = "polyfempy" ,
96- version = "0.7" ,
97- author = "Teseo Schneider" ,
98- author_email = "" ,
9988 description = "Polyfem Python Bindings" ,
10089 long_description = long_description ,
10190 long_description_content_type = "text/markdown" ,
@@ -108,13 +97,5 @@ def build_extension(self, ext):
10897 "License :: OSI Approved :: MIT License"
10998 ],
11099 python_requires = '>=3.6' ,
111- install_requires = [
112- 'numpy' ,
113- 'argparse' ],
114- entry_points = {
115- 'console_scripts' : [
116- 'polyfem = polyfempy.command:polyfem'
117- ]
118- },
119100 test_suite = "test"
120101)
0 commit comments