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

Fixes for installation #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kenadia
Copy link

@Kenadia Kenadia commented Jul 13, 2021

My system:

macOS 11.2.3
pyenv 1.2.21
Python 3.7.9
cmake version 3.19.3

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:

# To build the project...
pyenv global 3.7.9  # Depends which 3.7.x version you have installed
pip3 install wheel
./build.sh

# To run the script...
source build/Release/src/services/perpetual/public/perpetual_public_venv/bin/activate
cd src/services/perpetual/public/
brew update
brew install gmp

@dan-starkware
Copy link
Contributor

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 = (

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?

Copy link
Author

@Kenadia Kenadia Jul 13, 2021

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:

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?

Copy link
Author

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

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

Successfully merging this pull request may close these issues.

3 participants