21 |
from distutils.command.install import install |
from distutils.command.install import install |
22 |
from distutils.command.build_py import build_py |
from distutils.command.build_py import build_py |
23 |
from distutils.file_util import write_file |
from distutils.file_util import write_file |
24 |
from distutils.util import convert_path |
from distutils.util import convert_path, change_root |
25 |
|
|
26 |
import distutils |
import distutils |
27 |
|
|
415 |
if os.name == "posix" and self.do_symlink: |
if os.name == "posix" and self.do_symlink: |
416 |
scriptfile = os.path.join(self.install_scripts, "thuban.py") |
scriptfile = os.path.join(self.install_scripts, "thuban.py") |
417 |
bindir = os.path.join(self.prefix, "bin") |
bindir = os.path.join(self.prefix, "bin") |
418 |
|
if self.root: |
419 |
|
bindir = change_root(self.root, bindir) |
420 |
binfile = os.path.join(bindir, "thuban") |
binfile = os.path.join(bindir, "thuban") |
421 |
self.mkpath(bindir) |
self.mkpath(bindir) |
422 |
self.copy_file(scriptfile, binfile, link="sym") |
self.copy_file(scriptfile, binfile, link="sym") |