Skip to content

Allow Installation on newer Python versions and ARM64 Mac#9

Open
robertschweizer wants to merge 2 commits intoMIC-DKFZ:developfrom
robertschweizer:support-py312
Open

Allow Installation on newer Python versions and ARM64 Mac#9
robertschweizer wants to merge 2 commits intoMIC-DKFZ:developfrom
robertschweizer:support-py312

Conversation

@robertschweizer
Copy link

Installing and using bpreg from PyPI would become easier with this, but it introduces the constant risk of new versions breaking something. That's why I added two new requirements files with proven-to-work version combinations.

See commit messages.

- Add missing dependencies
- Stop duplicating dependency definition in requirements.txt
- Add requirements-py39.txt with a fixed, working version set
- Allow running tests on GPU
This allows installation on Python 3.12.

For safety, this includes a requirements-py312.txt with a proven-to-work
set of dependencies.

I ran the tests: test_npy_inference find tiny differences (less than 0.01%)
in the exact prediction scores. This is probably acceptable.
@Thibescobar
Copy link

Just tested locally by cloning, taking the present branch, and installing using pip install -e . .

Works perfectly on

  • Linux Ubuntu 22.04
  • Conda env with Python 3.12.7
  • CUDA 11.7

There was just an error related to the Numpy version that was installed that was not the one of the requirement (2.1.3 instead of 1.26.4). Easily fixed by manually reinstalling the good version with pip install numpy==1.26.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants