Lines 23-29
Link Here
|
23 |
from distutils import log |
23 |
from distutils import log |
24 |
from subprocess import Popen, PIPE |
24 |
from subprocess import Popen, PIPE |
25 |
sys.path.append("lib") |
25 |
sys.path.append("lib") |
26 |
from contrib.debian.installer import DebianInstaller |
|
|
27 |
|
26 |
|
28 |
# |
27 |
# |
29 |
# Build the command line script |
28 |
# Build the command line script |
Lines 55-60
Link Here
|
55 |
""" |
54 |
""" |
56 |
Create the proper script for the current platform. |
55 |
Create the proper script for the current platform. |
57 |
""" |
56 |
""" |
|
|
57 |
print("*** BUILD SCRIPTS",sys.stderr) |
58 |
if not self.scripts: |
58 |
if not self.scripts: |
59 |
return |
59 |
return |
60 |
|
60 |
|
Lines 71-76
Link Here
|
71 |
|
71 |
|
72 |
# Data useful for building the script |
72 |
# Data useful for building the script |
73 |
install = self.distribution.get_command_obj("install") |
73 |
install = self.distribution.get_command_obj("install") |
|
|
74 |
print(f"**** install: {install}",sys.stderr) |
75 |
print(f"**** install.install_data: {install.install_data}",sys.stderr) |
74 |
if not(install.install_data): |
76 |
if not(install.install_data): |
75 |
return |
77 |
return |
76 |
|
78 |
|
Lines 180-185
Link Here
|
180 |
self.docbook_xsl = None |
182 |
self.docbook_xsl = None |
181 |
|
183 |
|
182 |
def run(self): |
184 |
def run(self): |
|
|
185 |
print("*** BUILD",sys.stderr) |
183 |
# Do the default tasks |
186 |
# Do the default tasks |
184 |
build.run(self) |
187 |
build.run(self) |
185 |
# And build the doc |
188 |
# And build the doc |
Lines 368-377
Link Here
|
368 |
raise OSError("not found: %s" % ", ".join(mis_stys)) |
371 |
raise OSError("not found: %s" % ", ".join(mis_stys)) |
369 |
|
372 |
|
370 |
def run(self): |
373 |
def run(self): |
371 |
if self.install_layout == "deb": |
374 |
print("*** INSTALL",sys.stderr) |
372 |
db = DebianInstaller(self) |
375 |
db = None |
373 |
else: |
|
|
374 |
db = None |
375 |
|
376 |
|
376 |
if not(db) and not(self.nodeps): |
377 |
if not(db) and not(self.nodeps): |
377 |
try: |
378 |
try: |
Lines 396-401
Link Here
|
396 |
class InstallData(install_data): |
397 |
class InstallData(install_data): |
397 |
|
398 |
|
398 |
def run(self): |
399 |
def run(self): |
|
|
400 |
print("*** INSTALL DATA",sys.stderr) |
399 |
ignore_pattern = os.path.sep + r"(CVS|RCS)" + os.path.sep |
401 |
ignore_pattern = os.path.sep + r"(CVS|RCS)" + os.path.sep |
400 |
# literal backslash must be doubled in regular expressions |
402 |
# literal backslash must be doubled in regular expressions |
401 |
ignore_pattern = ignore_pattern.replace('\\', r'\\') |
403 |
ignore_pattern = ignore_pattern.replace('\\', r'\\') |
Lines 432-437
Link Here
|
432 |
|
434 |
|
433 |
if self.distribution.get_command_obj("install").install_layout != "deb": |
435 |
if self.distribution.get_command_obj("install").install_layout != "deb": |
434 |
self.adapt_installed_data() |
436 |
self.adapt_installed_data() |
|
|
437 |
|
438 |
install = self.distribution.get_command_obj("install") |
439 |
print(f"**** install.install_data: {install.install_data}",sys.stderr) |
435 |
return rc |
440 |
return rc |
436 |
|
441 |
|
437 |
def adapt_installed_data(self): |
442 |
def adapt_installed_data(self): |