Commits

Doug Hellmann committed 343a9f9

fix #60 by setting install_requires instead of requires

Comments (0)

Files changed (3)

 2010-12-26  Doug Hellmann  <dhellmann@racemi.com>
 
+	* setup.py: Change "requires" to "install_requires" so pip will
+	try to install virtualenv if it is not already there.
+
 	* virtualenvwrapper.sh (virtualenvwrapper_get_python_version): Use
 	python's -V option and cut to get the version instead of a python
 	one-liner.
     provides=['virtualenvwrapper',
               'virtualenvwrapper.user_scripts',
               ],
-    requires=['virtualenv'],
+    install_requires=['virtualenv'],
 
     namespace_packages = [ 'virtualenvwrapper' ],
     packages = find_packages(),

tests/manual_test_install.sh

 oneTimeSetUp() {
     rm -rf "$WORKON_HOME"
     mkdir -p "$WORKON_HOME"
-    mkvirtualenv "installtest"
-    (cd "$test_dir/.." && make sdist)
 }
 
 oneTimeTearDown() {
     echo
 }
 
+test_build_ok () {
+    (cd "$test_dir/.." && make sdist)
+    outcome=$?
+ 	assertSame "0" "$outcome"
+}
+
 test_install () {
     dist_dir=$(dirname $test_dir)/dist
     pip install "$dist_dir/virtualenvwrapper-$VERSION.tar.gz"
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.