Skip to content

--clear doesn't clear out bin/ #2

Closed

Description

@carljm

From https://bugs.launchpad.net/virtualenv/+bug/325642

carljm@bokchoi:~$ python2.6 -m virtualenv tmp
New python executable in tmp/bin/python2.6
Not overwriting existing python script tmp/bin/python (you must use tmp/bin/python2.6)
Installing setuptools.............done.
carljm@bokchoi:~$ python2.6 -m virtualenv --clear tmp
Deleting tree tmp/lib/python2.6
Not deleting tmp/bin
New python executable in tmp/bin/python2.6
Not overwriting existing python script tmp/bin/python (you must use tmp/bin/python2.6)
Installing setuptools............done.

Activity

  1. pnasrat commented on Mar 24, 2011

    @pnasrat

    Is this still an issue?

    With 1.4.9

    pnasrat-macbookpro:virtualenv pnasrat$ python2.6 -m virtualenv ve
    New python executable in ve/bin/python
    Installing setuptools............done.
    pnasrat-macbookpro:virtualenv pnasrat$ python2.6 -m virtualenv --clear ve
    Deleting tree ve/lib/python2.6
    Not deleting ve/bin
    New python executable in ve/bin/python
    Installing setuptools............done.
    

    Seems to work on master too

    pnasrat-macbookpro:virtualenv pnasrat$ git show
    commit 6bece29dd18bd92a666f177f3ff5efdf2d1ac967
    
    
    pnasrat-macbookpro:virtualenv pnasrat$ python2.4 virtualenv.py --clear ve
    Not deleting ve/bin
    New python executable in ve/bin/python
    Installing setuptools.............done.
    
    pnasrat-macbookpro:virtualenv pnasrat$ ./ve/bin/python -c 'import sys; print sys.version'
    2.4.6 (#1, Aug  3 2009, 17:05:16) 
    [GCC 4.0.1 (Apple Inc. build 5490)]
    
  2. added a commit that references this issue on May 23, 2016
  3. gaborbernat commented on Nov 6, 2018

    @gaborbernat
    Contributor

    I think this should be fixed, we don't support Python 2.6 anymore but if you can reproduce it with 2.7+ open it again.

  4. locked and limited conversation to collaborators on Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions