Install does not make mktmpenv command available

Steve Holden avatarSteve Holden created an issue

Installed virtualenvwraper.mktmp, but no "mktmpenv" command is available. Running under MacOS X with Python 2.7. Install output follows:

(testevb)airhead:packaginator sholden$ pip freeze
distribute==0.6.15
eventbrite==0.20-beta
gunicorn==0.12.1
shpaml==1.00b
virtualenv==1.6
virtualenvwrapper==2.7
wsgiref==0.1.2
xlrd==0.7.1
(testevb)airhead:packaginator sholden$ pip install virtualenvwrapper.tmpenv
Downloading/unpacking virtualenvwrapper.tmpenv
  Downloading virtualenvwrapper.tmpenv-1.0.tar.gz (69Kb): 69Kb downloaded
  Running setup.py egg_info for package virtualenvwrapper.tmpenv
    
    WARNING: virtualenvwrapper is a namespace package, but its __init__.py does
    not declare_namespace(); setuptools 0.7 will REQUIRE this!
    (See the setuptools manual under "Namespace Packages" for details.)
    
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /Users/sholden/.virtualenvs/testevb/lib/python2.7/site-packages (from virtualenvwrapper.tmpenv)
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /Users/sholden/.virtualenvs/testevb/lib/python2.7/site-packages (from virtualenvwrapper.tmpenv)
Installing collected packages: virtualenvwrapper.tmpenv
  Running setup.py install for virtualenvwrapper.tmpenv
    WARNING: virtualenvwrapper is a namespace package, but its __init__.py does
    not declare_namespace(); setuptools 0.7 will REQUIRE this!
    (See the setuptools manual under "Namespace Packages" for details.)
    
    
    Skipping installation of /Users/sholden/.virtualenvs/testevb/lib/python2.7/site-packages/virtualenvwrapper/__init__.py (namespace package)
    Installing /Users/sholden/.virtualenvs/testevb/lib/python2.7/site-packages/virtualenvwrapper.tmpenv-1.0-py2.7-nspkg.pth
Successfully installed virtualenvwrapper.tmpenv
Cleaning up...
(testevb)airhead:packaginator sholden$ mktmpenv something
-bash: mktmpenv: command not found
(testevb)airhead:packaginator sholden$ locate mktmpenv
(testevb)airhead:packaginator sholden$ sudo find / -name \*mktmpenv\*
Password:
(testevb)airhead:packaginator sholden$ 

Did I do something wrong?

Comments (3)

  1. Doug Hellmann

    I am pretty sure that the only step you missed was restarting your shell (or re-sourcing virtualenvwrapper.sh).

    As with most of the virtualenvwrapper commands, "mktmpenv" is actually a shell function, not a separate script or command line app. They are implemented that way because many of them modify the current shell environment settings, and you can't do that from a child process.

    Let me know if starting a new shell doesn't give you a mktmpenv command.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.