2015-07-25 23:45:13 -07:00
|
|
|
#!/usr/bin/env python3
|
2016-02-05 02:34:49 -08:00
|
|
|
# -*- coding: utf-8 -*-
|
2021-06-09 00:47:39 -07:00
|
|
|
# © 2021 James R. Barlow: github.com/jbarlow83
|
2018-03-14 14:40:48 -07:00
|
|
|
#
|
2020-08-05 00:44:42 -07:00
|
|
|
# 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
|
|
|
|
2021-06-09 00:47:39 -07:00
|
|
|
from setuptools import setup
|
2019-02-26 12:23:33 -08:00
|
|
|
|
2021-06-09 00:47:39 -07: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
|
2016-01-19 16:07:52 -08:00
|
|
|
],
|
|
|
|
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
|
|
|
)
|