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

pyv rc not use the current python distribution #4

Open
kyp76 opened this issue Jun 24, 2020 · 1 comment
Open

pyv rc not use the current python distribution #4

kyp76 opened this issue Jun 24, 2020 · 1 comment

Comments

@kyp76
Copy link

kyp76 commented Jun 24, 2020

set to reproduce

>> pyv l 
# distributions
 from_path:Python 3.6.8:/home/cloud-user/local/pyv/venvs/spintest/bin
 Python-3.6.5:Python 3.6.5:/home/cloud-user/local/pyv/distributions/Python-3.6.5
*Python-3.6.8:Python 3.6.8:/home/cloud-user/local/pyv/distributions/Python-3.6.8

# virtualenvs
 ansible:Python 3.6.8:/home/cloud-user/local/pyv/venvs/ansible
 hermes:Python 3.6.8:/home/cloud-user/local/pyv/venvs/hermes
 iamaas:Python 3.6.8:/home/cloud-user/local/pyv/venvs/iamaas
 sg_hermes:Python 3.6.8:/home/cloud-user/local/pyv/venvs/sg_hermes
*spintest:Python 3.6.8:/home/cloud-user/local/pyv/venvs/spintest

pyhton dist = Python-3.6.8 and spintest:Python 3.6.8

>> pyv D Python-3.6.5
>> pyv rc spintest 
>> pyv l 
** pyv l
# distributions
 from_path:Python 3.6.8:/home/cloud-user/local/pyv/venvs/spintest/bin
*Python-3.6.5:Python 3.6.5:/home/cloud-user/local/pyv/distributions/Python-3.6.5
 Python-3.6.8:Python 3.6.8:/home/cloud-user/local/pyv/distributions/Python-3.6.8

# virtualenvs
 ansible:Python 3.6.8:/home/cloud-user/local/pyv/venvs/ansible
 hermes:Python 3.6.8:/home/cloud-user/local/pyv/venvs/hermes
 iamaas:Python 3.6.8:/home/cloud-user/local/pyv/venvs/iamaas
 sg_hermes:Python 3.6.8:/home/cloud-user/local/pyv/venvs/sg_hermes
*spintest:Python 3.6.8:/home/cloud-user/local/pyv/venvs/spintest

spintest is still present on python 3.6.8

Proposal

on the function _pyv_recreate()
use function _pyv_delete() and _pyv_create()

@ttych
Copy link
Owner

ttych commented Jun 24, 2020

At the recreation time, the current version is favored against the current selected destributions.
Main scenario, it was made for, is "I reset my complete environment to validate package install + test" keeping the current release.
So :

  • pyv rc spintest
  • pip install
  • ....

In your case either , as you said :

  • manually do : pyv d spintest + pyv c spintest
  • or pyv rc spintest Python-3.6.8 (adding the expected new version forcing the target python release to be used)

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

No branches or pull requests

2 participants