Skip to content

Commit

Permalink
Ship static libs for wheel testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fangerer committed Apr 28, 2023
1 parent 49df928 commit 1ca8bbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,15 @@ def get_library_names(self):

def build_libraries(self, libraries):
# we just inherit the 'inplace' option from 'build_ext'
inplace = self.get_finalized_command('build_ext').inplace
build_ext = self.get_finalized_command('build_ext')
inplace = build_ext.inplace
if inplace:
# the inplace option requires to find the package directory
# using the build_py command for that
build_py = self.get_finalized_command('build_py')
lib_dir = os.path.abspath(build_py.get_package_dir('hpy.devel'))
else:
lib_dir = self.build_clib
lib_dir = os.path.join(build_ext.build_lib, 'hpy', 'devel')

import pathlib
for lib in libraries:
Expand Down

0 comments on commit 1ca8bbf

Please sign in to comment.