Use setup from setuptools to allow creation of python wheels

Add extras_require
This commit is contained in:
David Straub 2020-09-03 17:12:22 +02:00 committed by Nick Hall
parent 33e3f4eb64
commit 71d95faeea

View File

@ -33,7 +33,8 @@ if sys.version_info < (3, 2):
raise SystemExit("Gramps requires Python 3.2 or later.") raise SystemExit("Gramps requires Python 3.2 or later.")
from distutils import log from distutils import log
from distutils.core import setup, Command from setuptools import setup
from distutils.core import Command
from distutils.util import convert_path, newer from distutils.util import convert_path, newer
from distutils.command.build import build as _build from distutils.command.build import build as _build
import os import os
@ -400,6 +401,13 @@ setup(name = 'gramps',
cmdclass = {'build': build, 'test': test}, cmdclass = {'build': build, 'test': test},
packages = packages, packages = packages,
package_data = {'gramps': package_data}, package_data = {'gramps': package_data},
extras_require={
"bsddb": ["bsddb3"],
"image": ["Pillow"],
"i18n": ["PyICU"],
"GUI": ["PyGObject", "pycairo"],
"testing": ["jsonschema", "mock", "lxml"],
},
data_files = data_files, data_files = data_files,
scripts = ['scripts/gramps'], scripts = ['scripts/gramps'],
classifiers = [ classifiers = [