Skip to content

Commit

Permalink
pyboolnet: update to 3.0.14 + embed binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Sep 24, 2024
1 parent 863015e commit bea161e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyboolnet/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python:
- 3.11
- 3.12
30 changes: 30 additions & 0 deletions pyboolnet/embed-binaries.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Common subdirectories: a/binaries and b/binaries
Common subdirectories: a/conda and b/conda
Common subdirectories: a/docs and b/docs
Common subdirectories: a/.github and b/.github
Common subdirectories: a/pyboolnet and b/pyboolnet
diff '--color=auto' -u a/setup.py b/setup.py
--- a/setup.py 2024-07-12 09:40:03.000000000 +0200
+++ b/setup.py 2024-09-24 17:00:42.898348933 +0200
@@ -18,14 +18,11 @@
Windows="win64",
)

-if "CONDA_BUILD" in os.environ:
- subdir = "conda"
-else:
- try:
- subdir = SUBDIR_MAP[THIS_OS]
- except KeyError:
- print(f"the operating system is not recognized: os={THIS_OS}")
- sys.exit(1)
+try:
+ subdir = SUBDIR_MAP[THIS_OS]
+except KeyError:
+ print(f"the operating system is not recognized: os={THIS_OS}")
+ sys.exit(1)

BINARIES_SOURCE_DIR = os.path.join("binaries", subdir)
print(f"detected os and binaries: {THIS_OS=}, {BINARIES_SOURCE_DIR=}")
Common subdirectories: a/tests and b/tests
Common subdirectories: a/tutorials and b/tutorials

0 comments on commit bea161e

Please sign in to comment.