309 |
class thuban_build_py(build_py): |
class thuban_build_py(build_py): |
310 |
|
|
311 |
""" |
""" |
312 |
A new build_py that can deal with both packages and modules in |
A new build_py that can deal with both packages and modules in one |
313 |
one distribution. |
distribution. |
314 |
""" |
""" |
315 |
|
|
316 |
def run(self): |
def run(self): |
317 |
"""The same the as teh original in build_py revision 1.33 except |
"""The same the as the original in build_py revision 1.33 except |
318 |
that this allows both packages and modules to be in one |
that this allows both packages and modules to be in one |
319 |
distribution |
distribution |
320 |
""" |
""" |
348 |
modules.append(("Lib", module_base, module_file)) |
modules.append(("Lib", module_base, module_file)) |
349 |
return modules |
return modules |
350 |
|
|
|
# |
|
|
# Extend the standard install command to symlink the installed script to |
|
|
# $prefix/bin/ |
|
|
# |
|
351 |
|
|
352 |
class ThubanInstall(install): |
class ThubanInstall(install): |
353 |
|
|
354 |
|
""" |
355 |
|
Thuban specific install command. |
356 |
|
|
357 |
|
Extend the standard install command to symlink the installed script |
358 |
|
to $prefix/bin/ |
359 |
|
""" |
360 |
def run(self): |
def run(self): |
361 |
install.run(self) |
install.run(self) |
362 |
if os.name == "posix": |
if os.name == "posix": |