Skip to content

Commit

Permalink
use symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Sep 25, 2024
1 parent 7931460 commit 8bbc639
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmake/getvers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fullversion_pep440="${fullversion_pep440:-0.1.0+unknown}" # fallback for SVN or


# version.py version info
rm $2
exec 1>"$2"


Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,16 @@ def run(self):
subprocess.run(["make", "install"], cwd=build_dir, check=True)


# create package
pkgdir = Path("./wheel/spt3g")
pkgdir.mkdir(parents=True, exist_ok=True)
initpy = pkgdir / "__init__.py"
if not initpy.is_symlink():
initpy.symlink_to(Path("./cmake/init.py").resolve())

# gather libraries
clibs = ["core"]
pdirs = {"spt3g": "./wheel/spt3g"}
pdirs = {"spt3g": str(pkgdir)}

for d in sorted(Path("./").glob("*/CMakeLists.txt")):
lib = d.parent.name
Expand Down
4 changes: 1 addition & 3 deletions wheel/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
spt3g/*.so
spt3g/*.dylib
spt3g/version.py
spt3g
deps
1 change: 0 additions & 1 deletion wheel/spt3g/__init__.py

This file was deleted.

0 comments on commit 8bbc639

Please sign in to comment.