@@ -96,13 +96,13 @@ def build_extension(self, ext):
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 )
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
106
107
107
subprocess .check_call (['cmake' , ext .sourcedir ] + cmake_args , cwd = self .build_temp , env = env )
108
108
subprocess .check_call (['cmake' , '--build' , '.' ] + build_args , cwd = self .build_temp )
@@ -116,7 +116,9 @@ def build_extension(self, ext):
116
116
url = 'https://github.com/VOLTTRON/dnp3-python' ,
117
117
description = 'pydnp3 -- python binding for opendnp3' ,
118
118
# long_description='long description',
119
- # install_requires=['pybind11>=2.2'],
119
+ install_requires = [
120
+ # 'pybind11>=2.2',
121
+ 'argcomplete' ],
120
122
ext_modules = [CMakeExtension ('pydnp3' )],
121
123
cmdclass = dict (build_ext = CMakeBuild ),
122
124
zip_safe = False ,
0 commit comments