OCRmyPDF/setup.py

22 lines
794 B
Python
Raw Normal View History

2015-07-25 23:45:13 -07:00
#!/usr/bin/env python3
2016-02-05 02:34:49 -08:00
# -*- coding: utf-8 -*-
# © 2021 James R. Barlow: github.com/jbarlow83
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
2015-07-25 23:45:13 -07:00
from setuptools import setup
2019-02-26 12:23:33 -08:00
# Minimal setup to support older setuptools/setuptools_scm
2015-07-25 23:45:13 -07:00
setup(
2019-02-26 12:23:33 -08:00
setup_requires=[ # can be removed whenever we can drop pip 9 support
'cffi >= 1.9.1', # to build the leptonica module
'setuptools_scm', # so that version will work
'setuptools_scm_git_archive', # enable version from github tarballs
],
use_scm_version={'version_scheme': 'post-release'},
2019-02-26 12:23:33 -08:00
cffi_modules=['src/ocrmypdf/lib/compile_leptonica.py:ffibuilder'],
2018-09-19 21:01:24 -07:00
)