duplicate path in python-virtualenv
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the issue with the provided python3 venv, activation, and nodeenv --python-virtualenv --node=lts commands, then inspect the nodeenv entry point handling --python-virtualenv and environment activation. Confirm the fix by reactivating .venv and verifying that .venv/bin appears only once in PATH.
Written by the indexing model from the issue text.
Description
When installed into a running python3 venv, that path is duplicated. Fairly easy to reproduce.
python3 -m venv .venv
source .venv/bin/activate
tr : '\n' <<<$PATH
Notice that PATH is already prepended with the .venv/bin.
/HERE/.venv/bin
/usr/local/bin
/usr/bin
/usr/local/sbin
/usr/sbin
/home/bozo/.local/bin
/home/bozo/bin
Then install nodeenv inside that active venv.
pip install nodeenv
nodeenv --python-virtualenv --node=lts
The next time you re-activate...
source .venv/bin/activate
tr : '\n' <<<$PATH
...that path is duplicated.
/HERE/.venv/lib/node_modules/.bin
/HERE/.venv/bin
/HERE/.venv/bin <== whoops!
/usr/local/bin
/usr/bin
/usr/local/sbin
/usr/sbin
/home/bozo/.local/bin
/home/bozo/bin
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 222
- Avg merge
- 11h 11m
- Merged PRs (30d)
- 12
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ekalinin/nodeenv
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
new-feature
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
All issues in ekalinin/nodeenv
Similar issues
-
bug ci good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
documentation
Difficulty 2/5 Half a day Newbie friendliness 62/100
inmanta/inmanta-core#10835 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
sponsored
Difficulty 2/5 1-3 hours Newbie friendliness 65/100