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

Any support for real scripts (i.e. not just console_scripts entry points)? #275

Closed
wimglenn opened this issue Jul 19, 2019 · 1 comment
Closed

Comments

@wimglenn
Copy link
Contributor

wimglenn commented Jul 19, 2019

I'm looking at scripts section in docs in https://flit.readthedocs.io/en/latest/pyproject_toml.html#scripts-section but it seems to be more about console_scripts entry points, rather than packaging actual scripts.

Does flit have any support for including scripts (e.g. shell scripts) in your distribution, like setuptools/distutils has with the scripts kwarg? If not currently, is it something that might be supported at a later date?

setup(
    name='myproj',
    scripts=['bash_scripts/do-the-thing.sh'],
)

Sometimes a script is better if you need to mess with the environment before invoking the python interpreter.

@wimglenn wimglenn changed the title Any support for scripts (real scripts, not console_scripts entry points)? Any support for real scripts (i.e. not just console_scripts entry points)? Jul 19, 2019
@takluyver
Copy link
Member

takluyver commented Jul 21, 2019

It does not. I don't have any plans at present to add that. I wouldn't say never, but in general, Flit does not aim to cover every possible use case.

You could always mess with the environment in Python and then reinvoke the Python interpreter in a subprocess. You can even use sys.executable to ensure you get the same Python interpreter that the package was installed with.

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

No branches or pull requests

2 participants