Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 75ff3b6

Browse files
committedFeb 25, 2024··
(fix) static lib insattled in separate directory (we don't package it)
1 parent 42279e3 commit 75ff3b6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎setup.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,15 @@ def run(self):
138138
def bc_set_dirs_download(self):
139139
self._cwd = pathlib.Path().cwd()
140140
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+
142143
if _SECP256K1_BUILD_TYPE == 'SHARED':
143144
# 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+
146150
self._lib_src = os.path.join(self._cwd, LIB_NAME)
147151
if not os.path.exists(self._lib_src):
148152
self.get_source_files()

0 commit comments

Comments
 (0)
Please sign in to comment.