Skip to content

Commit 6a63c19

Browse files
committed
WIP
1 parent 35e4064 commit 6a63c19

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

setup.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import subprocess
33
import sys
44
import shutil
5-
from pathlib import Path
5+
import pathlib
66
from setuptools import setup, Extension
77
from setuptools.command.build_ext import build_ext
88

@@ -98,12 +98,22 @@ def build_extension(self, ext):
9898
subprocess.check_call(
9999
["cmake", "--build", "."] + build_args, cwd=build_temp
100100
)
101+
extension_path = pathlib.Path(self.get_ext_fullpath(ext.name))
102+
print("COOKIES!!!!!")
103+
print("N: ", ext.name)
104+
print("GEF: ", self.get_ext_fullpath(ext.name))
105+
_, file_ext = os.path.splitext(self.get_ext_fullpath(ext.name))
106+
print("EXT_2: ", file_ext)
107+
src = build_temp + file_ext
108+
print(" shutil.copy(", src, ", ", extension_path, ")")
109+
110+
shutil.copy(src, extension_path)
101111
except subprocess.CalledProcessError as e:
102112
raise RuntimeError(f"CMake build failed: {e}")
103113

104114

105115
# Read the contents of your README file
106-
this_directory = Path(__file__).parent
116+
this_directory = pathlib.Path(__file__).parent
107117
readme_file = this_directory / "README.md"
108118
if readme_file.exists():
109119
long_description = readme_file.read_text(encoding="utf-8")

0 commit comments

Comments
 (0)