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

Warning not filtered as supposed to #825

Closed
cblegare opened this issue Oct 22, 2016 · 1 comment
Closed

Warning not filtered as supposed to #825

cblegare opened this issue Oct 22, 2016 · 1 comment

Comments

@cblegare
Copy link
Contributor

@cblegare cblegare commented Oct 22, 2016

The warning emitted for missing standard script name in py36compat.py is not suppressed by manifest_maker.warn but seems to be supposed to.

I found this while exploring a setup.py as a directory containing a __main__.py. I happened to run

python setup.py/__main__.py

and I had a warning about the file __main__.py missing.

You can suppress the warning by using the script_name keyword argument of setuptools.setup like so:

from setuptools import setup

setup(
    name="mypackage",
    # ... a plethora of other kwargs
    script_name="setup.py"
)
@jaraco
Copy link
Member

@jaraco jaraco commented Oct 22, 2016

Seems reasonable. Can you send a pull request?

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants