Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Update numpy requirements on top of PR #1042 #1043

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions doc/contributors_guide/tips_and_tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ This can be done as follows:

2. Build the wheel

cd python
python setup.py bdist_wheel
cd dlite # root of source directory
pip wheel -w python/dist ./python

3. Install the wheel with pip in a newly created environment (the version numbers may differ for your case)

pip install dist/DLite_Python-0.5.22-cp311-cp311-linux_x86_64.whl
pip install python/dist/DLite_Python-0.5.26-cp311-cp311-linux_x86_64.whl

4. Finally, test by importing dlite in the standard manner

cd ..
python
>>> import dlite

Expand Down
6 changes: 3 additions & 3 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = [
"numpy>=1.14.5,<2.1.3",
# numpy>=2.1.0 fails with with "undefined symbol: PyMutex_Unlock" on Python 3.13
"numpy>=1.14.5",
"numpy<2.1.0; python_version>='3.13'",
"swig==4.3.0",
"cmake==3.31.1",
#"setuptools==57.5.0; python_version<'3.9'",
#"setuptools==75.3.0; python_version>='3.9'",
"setuptools==75.3.0",
"wheel==0.41.3",
]
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
numpy>=1.14.5,<2.1.3
numpy>=1.14.5
numpy<2.1.0; python_version>='3.13'
Loading