module name: module references __file__
This appears several times when I install my own packages using easy_install and initial google search didn't bring any success.
I am fully aware that I'm using __file__
inside the modules, but there is nothing wrong about it.
How to I get rid of this message without removing __file__
references?
Found this page while googling the same problem. The solution is:
Tell distutils that your package is not zip_safe (and that this is ok) like this:
setup (name = 'yourmodule',
...
zip_safe = False,
...
)
This way easy_install will not have to parse your module and will not complain about __file__ references.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With