argparse was missing from this ports RUN_DEPENDS, causing errors on imports. argparse is avaiilable in the Python 2.7 and 3.2+ standard libraries so patch setup.py to only require it for those versions. Patch has been committed upstream and won't be necessary for the next release. While I'm here, enable STAGE support. PR: ports/183477 Submitted by: koobs Approved by: Volodymyr Kostyrko <c.kworr@gmail.com> (maintainer)
27 lines
576 B
Python
27 lines
576 B
Python
--- ./setup.py.orig 2012-09-12 19:25:34.000000000 +1000
|
|
+++ ./setup.py 2013-12-05 21:21:46.941032294 +1100
|
|
@@ -1,17 +1,22 @@
|
|
import os
|
|
+import sys
|
|
from setuptools import setup
|
|
|
|
install_requires = [
|
|
'mysql-python>=1.2.3',
|
|
'psycopg2>=2.4.2',
|
|
'pyyaml>=3.10.0',
|
|
- 'argparse',
|
|
'pytz',
|
|
]
|
|
|
|
if os.name == 'posix':
|
|
install_requires.append('termcolor>=1.1.0')
|
|
-
|
|
+
|
|
+version = sys.version_info[:2]
|
|
+
|
|
+if version < (2,7) or (3,0) <= version <= (3,1):
|
|
+ install_requires += ['argparse']
|
|
+
|
|
setup(
|
|
name='py-mysql2pgsql',
|
|
version='0.1.6',
|