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
|
Description: Remove unneeded bits of the setup.py file which
are used to build an entirely different package.
Author: Steve Conklin <steve@conklinhouse.com>
--- a/setup.py
+++ b/setup.py
@@ -117,44 +117,10 @@
('share/chirp/stock_configs', stock_configs),
] + locale_files)
-def rpttool_build():
- from distutils.core import setup
-
- setup(name="rpttool",
- packages=["chirp"],
- version="0.3",
- scripts=["rpttool"],
- description="A frequency tool for ICOM D-STAR Repeaters",
- data_files=[('/usr/sbin', ["tools/icomsio.sh"])],
- )
-
-def nuke_manifest(*files):
- for i in ["MANIFEST", "MANIFEST.in"]:
- if os.path.exists(i):
- os.remove(i)
-
- if not files:
- return
-
- f = file("MANIFEST.in", "w")
- for fn in files:
- print >>f, fn
- f.close()
-
if sys.platform == "darwin":
macos_build()
elif sys.platform == "win32":
win32_build()
else:
- if os.path.exists("rpttool"):
- nuke_manifest("include tools/icomsio.sh", "include README.rpttool")
- rpttool_build()
- if os.path.exists("chirpui"):
- nuke_manifest("include *.xsd",
- "include share/*.desktop",
- "include share/chirp.png",
- "include share/*.1",
- "include stock_configs/*",
- "include COPYING")
- default_build()
+ default_build()
|