aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-10-02 21:27:27 +0300
committerBerker Peksag <berker.peksag@gmail.com>2014-10-02 21:28:37 +0300
commitab46e89a65d69cadd45a568ff89d8157f2ea8512 (patch)
tree17ee6f52fc7b62341f05b91b0457204571efcdfd /setup.py
parentcca5d508ad4faeacdb0a7bbcb51243bef507090e (diff)
downloadmediagoblin-ab46e89a65d69cadd45a568ff89d8157f2ea8512.tar.lz
mediagoblin-ab46e89a65d69cadd45a568ff89d8157f2ea8512.tar.xz
mediagoblin-ab46e89a65d69cadd45a568ff89d8157f2ea8512.zip
Install ExifRead from GitHub on Python 3.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index a644a3c3..6773437e 100644
--- a/setup.py
+++ b/setup.py
@@ -53,6 +53,8 @@ if PY2:
# # their next release.
# py2_only_install_requires.append('pbr==0.5.22')
py2_only_install_requires.append('mock') # mock is in the stdlib for 3.3+
+ # PyPI version (1.4.2) does not have proper Python 3 support
+ py2_only_install_requires.append('ExifRead')
install_requires = [
'gunicorn',
@@ -79,7 +81,6 @@ install_requires = [
'oauthlib',
'unidecode',
'jsonschema',
- 'ExifRead', # TODO(berker): Install develop branch for Python 3
'PasteDeploy',
'requests',
'pyld',
@@ -91,6 +92,12 @@ install_requires = [
# 'Pillow',
] + py2_only_install_requires
+dependency_links = []
+if not PY2:
+ # PyPI version (1.4.2) does not have proper Python 3 support
+ dependency_links.append('https://github.com/ianare/exif-py/zipball/develop#egg=ExifRead-2.0.0')
+ install_requires.append('ExifRead>=2.0.0')
+
with open(READMEFILE, encoding="utf-8") as fobj:
long_description = fobj.read()
@@ -103,6 +110,7 @@ try:
include_package_data = True,
# scripts and dependencies
install_requires=install_requires,
+ dependency_links=dependency_links,
test_suite='nose.collector',
entry_points="""\
[console_scripts]