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

Fix CLI entry point #41

Merged
merged 2 commits into from
Jun 4, 2023
Merged

Fix CLI entry point #41

merged 2 commits into from
Jun 4, 2023

Conversation

carterbox
Copy link
Contributor

The "console scripts" entry points must point to a function in an installed python module. tomocupy_cli:main was not a python module, it was a script located in /bin, so it is not a valid entry point. Pip creates a bash/cmd script (depends on the platform) that wraps the function listed in "console scripts" and installs it.

The files listed in "scripts" are copied directly to the /bin folder, so they are not cross-platform because Windows and Unix handle scripts in different ways.

In this PR, I have moved the tomocupy_cli script into the the tomocupy package, so it is installed with the rest of the module and now the console_scripts entry point points to a function that actually exists.

@carterbox carterbox requested a review from nikitinvv June 4, 2023 01:03
@nikitinvv nikitinvv merged commit 7cfbdcc into main Jun 4, 2023
@carterbox carterbox deleted the entry-point branch June 5, 2023 00:20
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