@@ -88,22 +88,14 @@ def build_extension(self, ext):
88
88
else :
89
89
cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg ]
90
90
cmake_args += ['-DSTATICLIBS=ON' ]
91
- build_args += ['--' , '-j2 ' ]
91
+ build_args += ['--' , '-j ' ]
92
92
93
93
env = os .environ .copy ()
94
94
env ['CXXFLAGS' ] = '{} -DVERSION_INFO=\\ "{}\\ "' .format (env .get ('CXXFLAGS' , '' ),
95
95
self .distribution .get_version ())
96
96
if not os .path .exists (self .build_temp ):
97
97
os .makedirs (self .build_temp )
98
98
99
- # setup_path = os.path.dirname(os.path.abspath(__file__))
100
- # if not "<string>" in open(os.path.join(setup_path, 'deps', 'dnp3', 'cpp', 'libs', 'include', 'asiodnp3', 'IMasterOperations.h')).read():
101
- # dnp3_path = os.path.join(setup_path, 'deps', 'dnp3')
102
- # patch_path = os.path.join(setup_path, 'imasteroperations.patch')
103
- # # dnp3_python_path = os.path.join(setup_path, 'src', 'dnp3_python')
104
- #
105
- # subprocess.check_call(['git', 'apply', patch_path], cwd=dnp3_path)
106
-
107
99
subprocess .check_call (['cmake' , ext .sourcedir ] + cmake_args , cwd = self .build_temp , env = env )
108
100
subprocess .check_call (['cmake' , '--build' , '.' ] + build_args , cwd = self .build_temp )
109
101
0 commit comments