Skip to content

setup: make pimport a setuptools script#138

Merged
roddhjav merged 1 commit intoroddhjav:masterfrom
drewrisinger:dr-pr-pimport-console-script
Mar 22, 2021
Merged

setup: make pimport a setuptools script#138
roddhjav merged 1 commit intoroddhjav:masterfrom
drewrisinger:dr-pr-pimport-console-script

Conversation

@drewrisinger
Copy link
Copy Markdown
Contributor

@drewrisinger drewrisinger commented Mar 22, 2021

The pimport script seems redundant if using the setuptools-based console scripts: https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html#console-scripts

This PR changes pass-import to use that convention.

I'm open to suggestions as to what I'm missing about pimport's usage, but it seems to me that the entry_points command is better-supported than scripts, and it saves having a redundant file.

In a specific use-case, on NixOS/nixpkgs, the scripts option is actually NOT desired, because the pimport script is simply copied and then needs to be manually wrapped to recognize the python environment, instead of using the built-in infrastructure for handling entry_points. See NixOS/nixpkgs#117165.

@roddhjav roddhjav merged commit ccdb699 into roddhjav:master Mar 22, 2021
@roddhjav
Copy link
Copy Markdown
Owner

Thanks, merged.

@drewrisinger drewrisinger deleted the dr-pr-pimport-console-script branch March 22, 2021 15:31
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