Skip to content

Commit

Permalink
fix problem with pip install not installing non .py files
Browse files Browse the repository at this point in the history
  • Loading branch information
ldath authored and warner committed Jun 30, 2015
1 parent 12e7d8b commit 99d5d93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/MANIFEST
/dist/
/versioneer.egg-info/
/.idea
6 changes: 5 additions & 1 deletion src/cmdclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def run(self):
# setuptools/install -> bdist_egg ->..
# setuptools/develop -> ?

from distutils.command.build_py import build_py as _build_py
# we override different "build_py" commands for both environments
if "setuptools" in sys.modules:
from setuptools.command.build_py import build_py as _build_py
else:
from distutils.command.build_py import build_py as _build_py

class cmd_build_py(_build_py):
def run(self):
Expand Down

0 comments on commit 99d5d93

Please sign in to comment.