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

Improve Cython dependency version specificity #784

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

aaraney
Copy link
Member

@aaraney aaraney commented Jun 13, 2024

Cython==3.0.4 introduced an issue that caused t-route building to fail (see #675). Newer version of Cython have been released and address the issue present in 3.0.4. This PR makes t-route's Cython version dependency requirement more lenient -- meaning more versions are now accepted to build t-route. Specifically, Cython>3,!=3.0.4.

Several other small backwards compatible packaging improvements were also introduced.

Fixes #675

@shorvath-noaa shorvath-noaa merged commit 290d00b into NOAA-OWP:master Jun 13, 2024
4 checks passed
aaraney added a commit to aaraney/DMOD that referenced this pull request Jul 12, 2024
Fix how `troute.nwm` is built. NOAA-OWP/t-route#784 removed `setup.py`, as a result the package should now be built with `build`.
robertbartel pushed a commit to NOAA-OWP/DMOD that referenced this pull request Jul 12, 2024
Fix how `troute.nwm` is built. NOAA-OWP/t-route#784 removed `setup.py`, as a result the package should now be built with `build`.
JurgenZach-NOAA added a commit that referenced this pull request Jul 25, 2024
Possible Cython compile errors in T-route caused by PR784 (#784) have resulted in a recommendation to compile in "no-editable' mode (PR 801, #801). The no-e option, in turn, has resulted in the necessity to recompile T-route after each edit of python code. 

The instructions provided here showcase how T-route can be installed in a manner compatible with PR 784 while avoiding the non-editable compile option. It is based on pip and venv, avoiding conda altogether. It has been implemented on WSL, but should be readily adaptable to the same recent long-term stable Ubuntu distros (22.04 and 20.04).
JurgenZach-NOAA added a commit that referenced this pull request Jul 25, 2024
Possible Cython compile errors in T-route caused by PR784 (#784) have resulted in a recommendation to compile in "no-editable' mode (PR 801, #801). The no-e option, in turn, has resulted in the necessity to recompile T-route after each edit of python code. 

The instructions provided here showcase how T-route can be installed in a manner compatible with PR 784 while avoiding the non-editable compile option. It is based on pip and venv, avoiding conda altogether. It has been implemented on WSL, but should be readily adaptable to the same recent long-term stable Ubuntu distros (22.04 and 20.04).
JurgenZach-NOAA added a commit that referenced this pull request Jul 29, 2024
* Included pip & venv based instructions for WSL2 (#812)

Possible Cython compile errors in T-route caused by PR784 (#784) have resulted in a recommendation to compile in "no-editable' mode (PR 801, #801). The no-e option, in turn, has resulted in the necessity to recompile T-route after each edit of python code. 

The instructions provided here showcase how T-route can be installed in a manner compatible with PR 784 while avoiding the non-editable compile option. It is based on pip and venv, avoiding conda altogether. It has been implemented on WSL, but should be readily adaptable to the same recent long-term stable Ubuntu distros (22.04 and 20.04).

* Updated shell formatting

* Update readme.md

* Update readme.md

* Only clone single branch

* Included warning about mixing pip and conda
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.

t-route does not compile on Cython==3.0.4
3 participants