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

use entrypoints instead of .py scripts for the command line #75

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

gillins
Copy link
Member

@gillins gillins commented Mar 11, 2024

.py scripts cause problems on the Windows command line. This was worked around to some degree by conda creating .py.exe entrypoints. However pip install refuses to do this and will only create .exe entrypoints (no .py).

So this change will mainly benefit Windows users. However all examples of package entry points I can find don't have the .py so this will make usage more 'standard'.

Calling the old .py scripts will now emit a warning.

Also taken the opportunity to call UseExceptions() to quieten the warnings with latest GDAL. And update the conda links. Plus add an extra note in INSTALL.txt about conda in case this is all people look at.

@neilflood we must do a release very shortly after merging this as the documentation will not match the existing release command line names (removed .py).

@gillins
Copy link
Member Author

gillins commented Mar 11, 2024

We must also amend the conda build when it picks up the new version to also provide the non-.py entry points.

@gillins gillins marked this pull request as ready for review March 11, 2024 21:44
@gillins gillins merged commit be0a39d into ubarsc:master Mar 12, 2024
2 checks passed
@gillins gillins deleted the entrypoints98237763765652623894945 branch March 12, 2024 22:07
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.

1 participant