Made dependencies vary by version to select py3k port of pdfminer if using Py3k
This commit is contained in:
parent
1070605316
commit
6030778089
9
setup.py
9
setup.py
|
@ -1,9 +1,16 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
|
|
||||||
long_description = open(os.path.join(os.path.dirname(__file__), "README.md")).read()
|
long_description = open(os.path.join(os.path.dirname(__file__), "README.md")).read()
|
||||||
|
|
||||||
|
# pdfminer isn't cross-version compatible but a py3k port is in PyPI
|
||||||
|
if platform.python_version() >= "3.0.0":
|
||||||
|
dependencies = ["pdfminer3k>=1.3.0"]
|
||||||
|
else:
|
||||||
|
dependencies = ["pdfminer>=0"]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pdfparanoia",
|
name="pdfparanoia",
|
||||||
version="0.0.14",
|
version="0.0.14",
|
||||||
|
@ -15,7 +22,7 @@ setup(
|
||||||
maintainer_email="kanzure@gmail.com",
|
maintainer_email="kanzure@gmail.com",
|
||||||
description="pdf watermark remover library for academic papers",
|
description="pdf watermark remover library for academic papers",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
install_requires=["pdfminer>=0"],
|
install_requires=dependencies,
|
||||||
scripts=["bin/pdfparanoia"],
|
scripts=["bin/pdfparanoia"],
|
||||||
platforms="any",
|
platforms="any",
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
|
Loading…
Reference in New Issue