-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (50 loc) · 1.89 KB
/
setup.py
File metadata and controls
57 lines (50 loc) · 1.89 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
#!/usr/bin/env python
from modules.version import VERSION
from distutils.core import setup
#from distutils.sysconfig import get_python_lib
import os
import os.path
import sys
from glob import glob
args = sys.argv[1:]
if sys.platform == 'win32':
# libpath = '.\\'
libpath = r"lib\site-packages\kodos"
else:
#libpath = "/usr/local/kodos" # 2.4.0 and prior
libpath = "/usr/share/kodos" # as of 2.4.1
for arg in args:
if arg == "--formats=wininst":
libpath = "kodos"
break
HELP_DIR = os.path.join(libpath, "help")
HELP_PY_DIR = os.path.join(libpath, "help", "python")
IMAGES_DIR = os.path.join(libpath, "images")
SCREENSHOTS_DIR = os.path.join(libpath, "screenshots")
MODULES_DIR = os.path.join(libpath, "modules")
TRANSLATIONS_DIR = os.path.join(libpath, "translations")
#########################################################################
setup(name="kodos",
version=VERSION,
description="Kodos is a visual regular expression editor",
author="Phil Schwartz",
author_email="phil_schwartz@users.sourceforge.net",
url="http://kodos.sourceforge.net",
scripts=['kodos.py'],
##package_dir={'': 'modules'},
packages=['modules', "."],
data_files=[(HELP_DIR, glob(os.path.join("help", "*.*ml"))),
(HELP_PY_DIR, glob(os.path.join("help", "python", "*.html"))),
(IMAGES_DIR, glob(os.path.join("images", "*.png"))),
(SCREENSHOTS_DIR, glob(os.path.join("screenshots", "*.png"))),
(libpath, glob('kodos.pro')),
(libpath, glob('kodosqt.pro')),
(TRANSLATIONS_DIR, glob(os.path.join("translations", "*"))),
(MODULES_DIR, glob("modules/*.ui"))
],
license="GPL",
extra_path='kodos',
long_description="""
Kodos is a visual regular expression editor and debugger.
"""
)