-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (49 loc) · 1.64 KB
/
setup.py
File metadata and controls
57 lines (49 loc) · 1.64 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import with_statement
import os
from setuptools import setup, find_packages
from worldmap import NAME, VERSION, AUTHOR, CONTACT
CURRENT_DIR = os.path.dirname(__file__)
README_PATH = os.path.join(CURRENT_DIR, 'README')
if os.path.exists(README_PATH):
with open(README_PATH) as readme:
README = readme.read().strip()
else:
README = ''
REQUIREMENTS_PATH = os.path.join(CURRENT_DIR, 'requirements.txt')
if os.path.exists(REQUIREMENTS_PATH):
with open(REQUIREMENTS_PATH) as requirements:
REQUIREMENTS = requirements.read().strip()
else:
REQUIREMENTS = ''
setup(
name=NAME,
version=VERSION,
description="Carthography",
long_description=README,
author=AUTHOR,
author_email=CONTACT,
url='http://www.free-knowledge.net',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=REQUIREMENTS,
entry_points={
'console_scripts': [
'worldmap_bootstrap = worldmap.interfaces.install:main',
'worldmap = worldmap.interfaces.gui:main'
#'worldmap_cli = worldmap.interfaces.cli:main'
]
},
data_files=[
('worldmap/images/', ['worldmap/images/icone.png',
'worldmap/images/a_propos.png']),
('worldmap/core/', ['worldmap/core/modules.json',
'worldmap/core/knowledge.db',
'worldmap/core/inconsolata-dz.otf',
'worldmap/core/GeoLiteCity.dat',
'worldmap/core/GeoLiteCityv6.dat'])
]
)
os.system('worldmap_bootstrap')