Permalink
Browse files

Close #263. Use environment markers for wheels

  • Loading branch information...
1 parent cae9e01 commit 1ce2c3200d505fa9e481c5dd7f423907d677c789 @fcurella fcurella committed Jul 13, 2015
Showing with 6 additions and 7 deletions.
  1. +2 −0 setup.cfg
  2. +4 −7 setup.py
View
@@ -0,0 +1,2 @@
+[bdist_wheel]
+universal = 1
View
@@ -3,7 +3,6 @@
import os
import io
-import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
@@ -13,11 +12,6 @@
version = '0.5.3'
-install_requires = []
-if ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or
- (sys.version_info[0] == 3 and sys.version_info[1] < 1)):
- install_requires.append('importlib')
-
# this module can be zip-safe if the zipimporter implements iter_modules or if
# pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.
try:
@@ -57,5 +51,8 @@
platforms=["any"],
test_suite='faker.tests',
zip_safe=zip_safe,
- install_requires=install_requires
+ extras_require={
+ ':python_version=="2.6"': ['importlib'],
+ ':python_version=="3.0"': ['importlib'],
+ }
)

0 comments on commit 1ce2c32

Please sign in to comment.