forked from MerginMaps/geodiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·45 lines (40 loc) · 1.29 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
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from skbuild import setup
import platform
# use scripts/update_version.py to update the version here and in other places at once
VERSION = "2.0.2"
cmake_args = [
'-DENABLE_TESTS:BOOL=OFF',
'-DENABLE_COVERAGE:BOOL=OFF',
'-DBUILD_TOOLS:BOOL=OFF',
'-DPEDANTIC:BOOL=OFF',
'-DPYGEODIFFVERSION='+str(VERSION)
]
arch = platform.architecture()[0] # 64bit or 32bit
if ('Windows' in platform.system()) and ("32" in arch):
cmake_args.append('-AWin32')
setup(
name="pygeodiff",
version=VERSION,
author="Lutra Consulting Ltd.",
author_email="[email protected]",
description="Python wrapper around GeoDiff library",
long_description="Python wrapper around GeoDiff library",
url="https://github.com/MerginMaps/geodiff",
packages=["pygeodiff"],
include_package_data=False,
keywords=["diff", "gis", "geo", "geopackage", "merge"],
scripts=[],
entry_points={"console_scripts": ["pygeodiff=pygeodiff.main:main"]},
zip_safe=False,
cmake_args=cmake_args,
cmake_source_dir="geodiff",
cmake_with_sdist=False,
test_suite="tests.test_project",
python_requires=">=3.7",
license="License :: OSI Approved :: MIT License",
classifiers=[
"Programming Language :: Python :: 3",
],
)