mirror of
https://github.com/kanzure/pdfparanoia.git
synced 2024-12-04 15:05:52 +01:00
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 -*-
|
||||
from setuptools import setup
|
||||
import os
|
||||
import platform
|
||||
|
||||
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(
|
||||
name="pdfparanoia",
|
||||
version="0.0.14",
|
||||
@ -15,7 +22,7 @@ setup(
|
||||
maintainer_email="kanzure@gmail.com",
|
||||
description="pdf watermark remover library for academic papers",
|
||||
long_description=long_description,
|
||||
install_requires=["pdfminer>=0"],
|
||||
install_requires=dependencies,
|
||||
scripts=["bin/pdfparanoia"],
|
||||
platforms="any",
|
||||
zip_safe=False,
|
||||
|
Loading…
Reference in New Issue
Block a user