File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -138,11 +138,15 @@ def run(self):
138
138
def bc_set_dirs_download (self ):
139
139
self ._cwd = pathlib .Path ().cwd ()
140
140
os .makedirs (self .build_temp , exist_ok = True )
141
- self ._install_dir = str (self .build_temp )
141
+ self ._install_dir = str (self .build_temp ).replace ('temp' , 'lib' )
142
+
142
143
if _SECP256K1_BUILD_TYPE == 'SHARED' :
143
144
# Install shared library in the package directory
144
- self ._install_dir .replace ('temp' , 'lib' )
145
- self ._install_lib_dir = os .path .join (self ._install_dir , PKG_NAME )
145
+ self ._install_lib_dir = os .path .join (self ._install_dir , PKG_NAME )
146
+ else :
147
+ # Install static library in its own directory for retrieval by build_ext
148
+ self ._install_lib_dir = os .path .join (self ._install_dir , LIB_NAME )
149
+
146
150
self ._lib_src = os .path .join (self ._cwd , LIB_NAME )
147
151
if not os .path .exists (self ._lib_src ):
148
152
self .get_source_files ()
You can’t perform that action at this time.
0 commit comments