Skip to content

Instantly share code, notes, and snippets.

@minrk
Created April 7, 2011 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minrk/908567 to your computer and use it in GitHub Desktop.
Save minrk/908567 to your computer and use it in GitHub Desktop.
diff --git a/setup.py b/setup.py
index f6c7e99..75bd22f 100755
--- a/setup.py
+++ b/setup.py
@@ -189,7 +189,6 @@ if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):
packages = find_packages()
package_data = find_package_data()
-scripts = find_scripts()
data_files = find_data_files()
#---------------------------------------------------------------------------
@@ -227,11 +226,14 @@ if 'setuptools' in sys.modules:
test='nose>=0.10.1',
security='pyOpenSSL>=0.6'
)
+ scripts = []
else:
# If we are running without setuptools, call this function which will
# check for dependencies an inform the user what is needed. This is
# just to make life easy for users.
check_for_dependencies()
+ # only use find_scripts when not using setuptools:
+ scripts = find_scripts()
#---------------------------------------------------------------------------
# Do the actual setup now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment