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

Move VERSION inside chipsec/ directory #15

Closed
wants to merge 0 commits into from

Conversation

tweksteen
Copy link
Owner

@tweksteen tweksteen commented Jul 5, 2016

Fix for issue chipsec#42.

Without this patch, python setup.py sdist && pip install dist/chipsec-1.2.3.tar.gz will die with:

WARNING: '.' not a valid package name; please use only.-separated package names in setup.py
[...]
error: can't copy 'ERSION': doesn't exist or not a regular file

With it, it will succeed.

There are still lots of assumptions in the code on where the code and the configuration files resides. For instance, chipsec_main.py will use __file__ to search for modules. When installing the packages, the scripts will be installed in another directory (i.e., bin/) and therefore the current code will fail.

Ultimately, the code should use pkg_resources from setuptools to solve this issue.

@bdlow
Copy link

bdlow commented Jul 27, 2016

lgtm, and +1 re. pkg_resources

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