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

Multiple fixes #29

Merged
merged 1 commit into from
Feb 14, 2016
Merged

Multiple fixes #29

merged 1 commit into from
Feb 14, 2016

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 8, 2016

Fix demo on Python3 including when python=python3. Use venv instead of
virtualenv if available.

Also create the venv in the demo folder.

Fix python -mplop.collector /path/to/script.py; this used to try to save
the profile output to profiles/path/to/script.py without creating the
intermediate folders (and thus would fail). Now the profile is saved
next to the script if given by absolute path.

@anntzer anntzer changed the title Fix demo on Python3... Multiple fixes Feb 8, 2016

pip install -r requirements.txt
"$PYTHON" -mpip install -r requirements.txt
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After activation, the environment's python and pip will be on the path and should be used; $PYTHON may point outside the virtualenv and is the wrong thing to use here.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or you could skip the activation and run $dir/envs/plop-demo/bin/{pip,python} directly.

Fix demo on Python3 including when python=python3.  Use venv instead of
virtualenv if available.

Also create the venv in the demo folder.

Fix python -mplop.collector /path/to/script.py; this used to try to save
the profile output to profiles/path/to/script.py without creating the
intermediate folders (and thus would fail).  Now the profile is saved
next to the script if given by absolute path.
@anntzer
Copy link
Contributor Author

anntzer commented Feb 14, 2016

fixed.

bdarnell added a commit that referenced this pull request Feb 14, 2016
@bdarnell bdarnell merged commit cc9978e into bdarnell:master Feb 14, 2016
@anntzer anntzer deleted the python3-compat branch August 12, 2019 07:46
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.

2 participants