-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fixing build system #336
Comments
@KOLANICH Thanks for the patch. We'll take a look and see what we can do to get this merged. |
I got halfway into patching this myself before thinking to check for PRs. |
@CoffeeExpress @devttys0 EDIT: Don't... there's something FUBAR here |
@KOLANICH $ binwalk
Traceback (most recent call last):
File "/usr/bin/binwalk", line 7, in
from binwalk.__init__ import main
ImportError: cannot import name 'main' Something is not found or named properly. cat /usr/bin/binwalk #!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from binwalk.__init__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?\|\.exe)?$', '', sys.argv[0])
sys.exit(main()) |
from binwalk.__init__ import main should be from binwalk.__main__ import main according to [options.entry_points]
console_scripts = binwalk = binwalk.__main__:main in |
* fixes issue ReFirmLabs#336 * Added build artifact src/binwalk.egg-info to .gitignore * Updated INSTALL.md to use pip install . * Added setup.cfg for pip * Changed setup.py to comply to pip setuptools install * Copied binwalk.py to src/binwalk/__main__.py
@KOLANICH Yeah, I noticed...while you were writing. :) Added email, URL and platform and requirements etc. so that But now its all fixed, and you can just do: git clone ...
cd binwalk
pip install . and you can run binwalk! pip uninstall binwalk and it will remove everything correctly without leftover artifacts. |
Currently builded package is unusable.
1 version.py doesn't go into a wheel
2 package cannot be called
python -m binwalk
because of the lack of__main__.py
3 The package is not registered when installed from a wheel.
I have fixed the issues and modernized the build system a bit.
The text was updated successfully, but these errors were encountered: