Skip to content

Commit

Permalink
update pypi action
Browse files Browse the repository at this point in the history
  • Loading branch information
kungjim committed Sep 17, 2023
1 parent 3b6ab11 commit 3dff36b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def __init__(self, name: str, sourcedir: str = "") -> None:
super().__init__(name, sources=[])
self.sourcedir = os.fspath(Path(sourcedir).resolve())

def walk_dir(val):
for root, dirs, files in os.walk(val, topdown=False):
for name in files:
print(os.path.join(root, name))
for name in dirs:
print(os.path.join(root, name))

class CMakeBuild(build_ext):
def build_extension(self, ext: CMakeExtension) -> None:
Expand All @@ -67,6 +73,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
# Set Python_EXECUTABLE instead if you use PYBIND11_FINDPYTHON
# from Python.
venv_dir = os.path.abspath(sys.executable+"../../")
walk_dir(venv_dir)
cmake_args = [
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}{os.sep}",
f"-DPYTHON_EXECUTABLE={sys.executable}",
Expand Down

0 comments on commit 3dff36b

Please sign in to comment.