Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Backwards compat with non-rhel releases

  • Loading branch information...
commit c01c8467fb5bf24d0c1850fb01500de018de949a 1 parent c277a74
Josh Braegger authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 setup.py
View
5 setup.py
@@ -7,7 +7,10 @@
except ImportError:
from distutils.core import setup
from distutils.command.install_data import install_data
-from pypi2rpm.command.bdist_rpm2 import bdist_rpm2
+try:
+ from pypi2rpm.command.bdist_rpm2 import bdist_rpm2
+except:
+ from distutils.command.bdist_rpm import bdist_rpm as bdist_rpm2
class osx_install_data(install_data):
# On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../
Please sign in to comment.
Something went wrong with that request. Please try again.