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
|
Description: Assorted Debian-specific file handling tweaks
Author: Unknown
Last-Update: 2014-08-07
--- pythoncard-0.8.2.orig/configuration.py
+++ pythoncard-0.8.2/configuration.py
@@ -64,7 +66,9 @@ if util.main_is_frozen():
default_homedir = sys.path[0]
homedir = default_homedir
else:
- default_homedir = os.path.dirname(os.path.abspath(__file__))
+ # KJP 2004-12-19 Changed for Debian to put shared data in a more "correct" place
+ #default_homedir = os.path.dirname(os.path.abspath(__file__))
+ default_homedir = "/usr/share/pythoncard"
#print "default_homedir", default_homedir
for evar in ('HOME', 'USERPROFILE', 'TMP'):
try:
--- pythoncard-0.8.2.orig/setup.py
+++ pythoncard-0.8.2/setup.py
@@ -55,9 +55,10 @@ def recurseDir(startDir):
# This should all be replaced by calls to os.path.walk, but later
listX=[startDir]
for fyle in os.listdir(startDir):
- file=os.path.join(startDir,fyle)
- if os.path.isdir(file):
- listX.extend(recurseDir(file))
+ if fyle != "debian":
+ file=os.path.join(startDir,fyle)
+ if os.path.isdir(file):
+ listX.extend(recurseDir(file))
return listX
def makeDataDirs(rootDir=APPLICATION_NAME, dataDirs=['.', 'docs','samples', 'tools']):
@@ -94,7 +95,8 @@ setup(name=APPLICATION_NAME,
platforms = "Mac OS X, Windows, Linux",
packages=[APPLICATION_NAME, APPLICATION_NAME + ".components", APPLICATION_NAME + ".templates", APPLICATION_NAME + ".templates.dialogs"],
package_dir={APPLICATION_NAME: '.'},
- scripts=["install-pythoncard.py"],
+ #Removed for Debian
+ #scripts=["install-pythoncard.py"],
license="BSD",
cmdclass = { 'install_data': smart_install_data},
data_files=makeDataDirs(),
|