-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -x | ||
|
||
# Move pyproject.toml to root (otherwise no way to include C++ sources in sdist). | ||
mv finufft/python/cufinufft/pyproject.toml finufft/ | ||
|
||
# Fix paths in pyproject.toml to reflect the new directory structure. | ||
toml set --toml-path finufft/pyproject.toml \ | ||
tool.scikit-build.cmake.source-dir "." | ||
toml set --toml-path finufft/pyproject.toml \ | ||
tool.scikit-build.wheel.packages --to-array "[\"python/cufinufft/cufinufft\"]" | ||
toml set --toml-path finufft/pyproject.toml \ | ||
tool.scikit-build.metadata.version.input "python/cufinufft/cufinufft/__init__.py" | ||
|
||
# Package the sdist. | ||
python3 -m build --verbose --sdist --outdir wheelhouse finufft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -x | ||
|
||
# Move pyproject.toml to root (otherwise no way to include C++ sources in sdist). | ||
mv finufft/python/finufft/pyproject.toml finufft/ | ||
|
||
# Fix paths in pyproject.toml to reflect the new directory structure. | ||
toml set --toml-path finufft/pyproject.toml \ | ||
tool.scikit-build.cmake.source-dir "." | ||
toml set --toml-path finufft/pyproject.toml \ | ||
tool.scikit-build.wheel.packages --to-array "[\"python/finufft/finufft\"]" | ||
toml set --toml-path finufft/pyproject.toml \ | ||
tool.scikit-build.metadata.version.input "python/finufft/finufft/__init__.py" | ||
|
||
# Package the sdist. | ||
python3 -m build --verbose --sdist --outdir wheelhouse finufft |