-
We have an example project with a single file that behaves differently when installed using pip and when installed with pyinstaller. Any help will be greatly appreciated. It uses the pypi package 'varname' 0.14.0 which does some retrospection magic. https://github.com/pwwang/python-varname/blob/master/varname/core.py#L323-L330 Behavior with installed with pip (correct behavior)
Behavior with pyinstaller (error):
main.py:
The entire project |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Eww, why would anyone want to do that... Looks like its black magic requires the raw |
Beta Was this translation helpful? Give feedback.
-
Thanks @bwoodsend. We use with shared command line validation logic, but if it requires to append the source files, I think we should just drop the dependency on varname and use a more straight forward python code instead. |
Beta Was this translation helpful? Give feedback.
Eww, why would anyone want to do that...
Looks like its black magic requires the raw
.py
files for any module using one of these introspection functions. Probably easiest to use--add-data=path/to/myapp/main.py:myapp
.