Skip to content

Commit

Permalink
move sdk files into arch subfolders (#29)
Browse files Browse the repository at this point in the history
* move files into arch subfolders

* unignore

* move windows

* update manifest

* rename windows folder

* whoops
  • Loading branch information
tlambert03 authored Nov 12, 2021
1 parent 1e2d45b commit 891b1ba
Show file tree
Hide file tree
Showing 26 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ src/nd2/_sdk/latest.c

# allow these
!src/sdk/**/*.so
!src/sdk/**/lib/
!src/sdk/**/*.a
6 changes: 4 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
include src/nd2/py.typed
recursive-include src/nd2 *.pyi
recursive-include src/nd2 *.py *.py[ix] *.pxd

graft src/sdk/*/lib
graft src/sdk/*/include
recursive-include src/sdk *.a *.h *.lib *.so *.txt LICENSE

exclude .pre-commit-config.yaml .coveragerc
exclude .pre-commit-config.yaml .coveragerc Makefile
recursive-exclude tests *
recursive-exclude .github *
recursive-exclude scripts *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude * *.c
exclude Makefile
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ repair-wheel-command = [
[tool.cibuildwheel.linux]
before-all = [
"apt-get update && apt-get install -y libtiff5-dev",
"cp {project}/src/sdk/Linux/lib/* /lib",
"cp {project}/src/sdk/Linux/x86_64/lib/* /lib",
]
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ filterwarnings =
error
ignore:The distutils package is deprecated::

[check-manifest]
ignore =
src/nd2/_version.py

[mypy]
files = src/nd2
warn_unused_configs = True
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
from setuptools import Extension, setup

SYSTEM = platform.system()
SDK = Path("src/sdk") / SYSTEM
PLATFORM = platform.machine().replace("AMD64", "x86_64")
SDK = Path("src/sdk") / SYSTEM / PLATFORM
LIB = SDK / "lib"
INCLUDE = SDK / "include"
LINK = "shared" if SYSTEM == "Linux" else "static"

# set env CYTHON_TRACE=1 to enable coverage on .pyx files
CYTHON_TRACE = bool(os.getenv("CYTHON_TRACE", "0") not in ("0", "False"))

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 891b1ba

Please sign in to comment.