-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·38 lines (32 loc) · 1.29 KB
/
setup.py
File metadata and controls
executable file
·38 lines (32 loc) · 1.29 KB
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
#!/usr/bin/python
from distutils.core import setup
from distutils.extension import Extension
from subprocess import call
from codecs import open
from os import path
import sys
if (len(sys.argv) > 1 and (sys.argv[1] == "build" or sys.argv[1] == "install")):
if (sys.argv[1] == "install"):
if (call(["make", "-C", "C_OpeningHours", "install"])):
sys.exit(1)
else:
if (call(["make", "-C", "C_OpeningHours"])):
sys.exit(1)
sys.exit(0)
if (len(sys.argv) > 1 and sys.argv[1] == "clean"):
if (call(["make", "-C", "C_OpeningHours", "fclean"])):
sys.exit(1)
long_description = ''
if path.exists('README.md'):
long_description = open('README.md', encoding='UTF-8', mode='r').read()
setup(
name = 'opening_hours',
version = '0.1.1',
description = 'Python wrapper embedding the C_OpeningHours writing on my own, implementation of the opening hours standard as described here: https://wiki.openstreetmap.org/wiki/Key:opening_hours',
author = 'Luka Boulagnon - Asphahyre',
author_email = 'asphahyre@geluti.org',
url = 'https://github.com/anthill/Python_OpeningHours',
packages = ['opening_hours'],
keywords = ['OSM', 'OpenStreetMap', 'opening_hours'],
long_description = long_description,
)