mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Try to fix Python 2.6 build
Apparently the latest markdown no longer works against py2.6; Travis fails on trying to import importlib. I added a dependency on the PyPI backport to see if that helps for now.
This commit is contained in:
parent
43db6a5337
commit
17999c5b1a
1 changed files with 15 additions and 7 deletions
22
setup.py
22
setup.py
|
@ -1,4 +1,18 @@
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
'SQLAlchemy>=0.9.7',
|
||||||
|
'whoosh>=2.5,<2.7',
|
||||||
|
'markdown',
|
||||||
|
'construct',
|
||||||
|
'six>=1.9.0',
|
||||||
|
]
|
||||||
|
if sys.version_info < (2, 7):
|
||||||
|
# We don't actually use this, but markdown does
|
||||||
|
deps.append('importlib')
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'Pokedex',
|
name = 'Pokedex',
|
||||||
version = '0.1',
|
version = '0.1',
|
||||||
|
@ -7,13 +21,7 @@ setup(
|
||||||
package_data = {
|
package_data = {
|
||||||
'pokedex': ['data/csv/*.csv']
|
'pokedex': ['data/csv/*.csv']
|
||||||
},
|
},
|
||||||
install_requires=[
|
install_requires=deps,
|
||||||
'SQLAlchemy>=0.9.7',
|
|
||||||
'whoosh>=2.5,<2.7',
|
|
||||||
'markdown',
|
|
||||||
'construct',
|
|
||||||
'six>=1.9.0',
|
|
||||||
],
|
|
||||||
|
|
||||||
entry_points = {
|
entry_points = {
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|
Loading…
Reference in a new issue