Permalink
Browse files

fix setup develop command

  • Loading branch information...
1 parent bb0e2e8 commit 4051047cab957d6ac4454970dc27e16ea69954b8 Matthew Perry committed Apr 4, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 setup.py
View
@@ -4,8 +4,15 @@
import os
import sys
-# setuptools messes with several things, stick with distutils!
-from distutils.core import setup
+# setuptools messes up `sdist`
+# but it works for `develop`
+if len(sys.argv) > 1 and sys.argv[1] == 'develop':
+ print "using setuptools.setup"
+ from setuptools import setup
+else:
+ print "using distutils.setup"
+ from distutils.core import setup
+
from distutils.command.install_data import install_data
from distutils.command.install import INSTALL_SCHEMES

0 comments on commit 4051047

Please sign in to comment.