-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·34 lines (28 loc) · 1.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from pathlib import Path
from setuptools import setup
from gamera import gamera_setup
# This constant should be the name of the toolkit
TOOLKIT_NAME = "skeleton"
# ----------------------------------------------------------------------------
# You should not usually have to edit anything below, but it is
# implemented here and not in the Gamera core so that you can edit it
# if you need to do something more complicated (for example, building
# and linking to a third- party library).
# ----------------------------------------------------------------------------
PLUGIN_PATH = 'gamera/toolkits/%s/plugins/' % TOOLKIT_NAME
PACKAGE = 'gamera.toolkits.%s' % TOOLKIT_NAME
PLUGIN_PACKAGE = PACKAGE + ".plugins"
plugins = gamera_setup.get_plugin_filenames(PLUGIN_PATH)
plugin_extensions = gamera_setup.generate_plugins(plugins, PLUGIN_PACKAGE)
# This is a standard setuptools setup initializer. If you need to do
# anything more complex here, refer to the Python setuptools documentation.
if __name__ == "__main__":
setup(name=TOOLKIT_NAME,
version="4.1.1",
ext_modules=plugin_extensions,
packages=[PACKAGE, PLUGIN_PACKAGE],
include_dirs=['include/plugins'],
python_requires='>=3.5',
scripts=['scripts/skeleton'],
install_requires=['gamera>=4.1.0']
)