We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to reproduce:
$ docker run -e PYTHONOPTIMIZE=2 -it --rm python:2-alpine pip install psutil Collecting psutil Downloading psutil-5.0.1.tar.gz (326kB) 100% |████████████████████████████████| 327kB 1.1MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-UayZX7/psutil/setup.py", line 322, in <module> main() File "/tmp/pip-build-UayZX7/psutil/setup.py", line 258, in main description=__doc__.replace('\n', '').strip(), AttributeError: 'NoneType' object has no attribute 'replace' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-UayZX7/psutil/
When using PYTHONOPTIMIZE=2, __doc__ are removed from the generated *.pyo files, assuming that in a production deployment you never need the docstrings.
__doc__
*.pyo
Could you please use an alternative method to get that docstring and make it work with maximum optimization?
Thanks!
The text was updated successfully, but these errors were encountered:
0be629e
No branches or pull requests
Steps to reproduce:
When using PYTHONOPTIMIZE=2,
__doc__
are removed from the generated*.pyo
files, assuming that in a production deployment you never need the docstrings.Could you please use an alternative method to get that docstring and make it work with maximum optimization?
Thanks!
The text was updated successfully, but these errors were encountered: