Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Aug 24, 2023
1 parent b9a05ed commit c6bf6a6
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 9 deletions.
33 changes: 33 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include AUTHORS
include CMakeLists.txt
include LICENSE
include pyproject.toml
include setup.py
global-exclude .github/*
graft bindings/
prune bindings/c
prune bindings/wasm
prune bindings/python/third_party/pybind11/tests/
graft src
prune src/third_party/clipper2/CPP/Examples/
prune src/third_party/clipper2/CPP/Tests/
prune src/third_party/clipper2/CSharp/
prune src/third_party/clipper2/Delphi/
prune src/third_party/clipper2/DLL/
prune src/third_party/clipper2/Tests/
prune src/third_party/glm/doc/
prune src/third_party/glm/test/
prune src/third_party/thrust/dependencies/cub/
prune src/third_party/thrust/dependencies/libcudacxx/.upstream-tests/
prune src/third_party/thrust/dependencies/libcudacxx/docker/
prune src/third_party/thrust/dependencies/libcudacxx/test/
prune src/third_party/thrust/dependencies/libcudacxx/docs/
prune src/third_party/thrust/dependencies/libcudacxx/libcxx/
prune src/third_party/thrust/dependencies/libcudacxx/libcxxabi/
prune src/third_party/thrust/dependencies/libcudacxx/libunwind/
prune src/third_party/thrust/docs/
prune src/third_party/thrust/testing/
prune src/third_party/thrust/internal/test/
prune src/third_party/thrust/examples/
prune src/third_party/thrust/thrust/system/cuda

13 changes: 7 additions & 6 deletions bindings/python/pyproject.toml → pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ classifiers = [
]
requires-python = ">=3.7"

dependencies = [
"oldest-supported-numpy; python_version<'3.12'",
"numpy>=1.26.0b1; python_version>='3.12'"
]

[project.urls]
"Homepage" = "https://github.com/elalish/manifold"
"Bug Tracker" = "https://github.com/elalish/manifold/issues"
Expand All @@ -23,17 +28,13 @@ requires-python = ">=3.7"
requires = [
"setuptools",
"scikit-build>=0.13",
"cmake",
"cmake>=3.18",
"ninja",
]
build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
test-requires = [
"trimesh",
"oldest-supported-numpy; python_version<'3.12'",
"numpy>=1.26.0b1; python_version>='3.12'"
]
test-requires = ["trimesh"]
test-command = "python {project}/bindings/python/examples/run_all.py"
# Setuptools bug causes collision between pypy and cpython artifacts
before-build = "rm -rf {project}/build"
Expand Down
6 changes: 3 additions & 3 deletions bindings/python/setup.py → setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
description=" Geometry library for topological robustness",
author="Emmett Lalish",
packages=["manifold3d"],
cmake_install_dir="manifold3d",
cmake_source_dir="../../",
package_dir={"": "bindings/python"},
cmake_install_dir="bindings/python/manifold3d",
zip_safe=True,
cmake_args=["-DMANIFOLD_PAR=TBB"],
cmake_args=["-DMANIFOLD_PAR=TBB", "-DMANIFOLD_TEST=OFF"],
)

0 comments on commit c6bf6a6

Please sign in to comment.