-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fixes for installation #1
base: master
Are you sure you want to change the base?
Conversation
You can build the Dockerfile and run the script from within a container. It should be self-contained. |
@@ -103,7 +103,10 @@ def main(): | |||
'/usr/bin', | |||
'/usr/local/bin', | |||
] | |||
python_exec = shutil.which(args.python, path=':'.join(lookup_paths)) | |||
python_exec = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the corrent lookup path to the list above instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why try to anticipate every path that the user may be using? Mine was in ~/.pyenv/shims
@@ -71,7 +71,10 @@ def main(): | |||
d = d.split(':')[-1] | |||
metadata_files = glob.glob(os.path.join(d, '*/METADATA')) | |||
for filename in metadata_files: | |||
licenses += extract_licenses(filename) | |||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this fails, and on what filename?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fails if the filename is a directory (IsADirectoryError
), in my case it was specifically python3.7/pip_chardet/chardet/METADATA
My system:
In addition to the small changes in this PR, these are the steps I had to take to complete installation and run the
public_generate_perpetual_config_hash.py
script: