Skip to content

Commit

Permalink
More Fixes to try to make FreeCAD in windows work (cihologramas#156)
Browse files Browse the repository at this point in the history
* missing np.import_array() added

* Another test

* Changed the version number to be able to test on windows
  • Loading branch information
ramezquitao authored Mar 6, 2024
1 parent cb135b2 commit 6a549fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ jobs:
pip install Cython==0.29.32 --config-settings="--install-option=--no-cython-compile"
pip install cibuildwheel
python -c "import sys; \
py_ver = sys.version_info; \
numpy_version = 'numpy==1.19.3' if py_ver.minor == 8 else \
'numpy==1.26.2' if py_ver.minor == 9 or py_ver.minor == 10 else \
'numpy==1.24.2' if py_ver.minor == 11 else 'numpy'; \
print(numpy_version); \
" | xargs pip install
# For the moment the sdist build will be disabled.
# - name: Build sdist
# run: python setup.py sdist --formats=zip

# The env variable CIBW_BUILD is set here to be able to format matrix.python-version correctly
- name: Set CIBW_BUILD environment variable using Python
env:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
requires = [
"setuptools>=42",
"wheel",
"Cython",
"numpy"
"Cython==0.29.32",
"oldest-supported-numpy"
]

build-backend = "setuptools.build_meta"

[project]
name = "pyoptools"
version = "0.2.3"
version = "0.2.4"
description = "Python tools for simulation of optical systems"
authors = [{ name = "Ricardo Amézquita Orozco", email = "ramezquitao@cihologramas.com" }]
license = {file = "LICENSE.txt"}
Expand Down

0 comments on commit 6a549fb

Please sign in to comment.