From: "Paweł Hajdan, Jr." <phajdan.jr@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/chromium-tools:master commit in: scripts/, /
Date: Tue, 22 Feb 2011 15:38:22 +0000 (UTC) [thread overview]
Message-ID: <f8b2a44f38c35fd7ee0854cd12a85e8b314de676.phajdan.jr@gentoo> (raw)
commit: f8b2a44f38c35fd7ee0854cd12a85e8b314de676
Author: Pawel Hajdan, Jr <phajdan.jr <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 22 15:34:47 2011 +0000
Commit: Paweł Hajdan, Jr. <phajdan.jr <AT> gentoo <DOT> org>
CommitDate: Tue Feb 22 15:34:47 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/chromium-tools.git;a=commit;h=f8b2a44f
Move chromium-depot-tool to libexec, to avoid cluttering $PATH.
---
MANIFEST.in | 4 +++
chromium-depot-tool => scripts/chromium-depot-tool | 0
v8-create-tarball => scripts/v8-create-tarball | 0
| 0
setup.py | 28 +++++++++----------
5 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..9ecf870
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,4 @@
+global-include *.py
+global-exclude *.pyc *.pyo
+graft scripts
+include LICENSE
diff --git a/chromium-depot-tool b/scripts/chromium-depot-tool
similarity index 100%
rename from chromium-depot-tool
rename to scripts/chromium-depot-tool
diff --git a/v8-create-tarball b/scripts/v8-create-tarball
similarity index 100%
rename from v8-create-tarball
rename to scripts/v8-create-tarball
diff --git a/v8-extract-version b/scripts/v8-extract-version
similarity index 100%
rename from v8-extract-version
rename to scripts/v8-extract-version
diff --git a/setup.py b/setup.py
index 2c1b88d..09abc3a 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@ import subprocess
import sys
from distutils.command.install_scripts import install_scripts
+from distutils.command.install_data import install_data
from distutils.command.sdist import sdist
from distutils.core import setup
from distutils.errors import *
@@ -46,21 +47,16 @@ class my_sdist(sdist):
sdist.make_release_tree(self, base_dir, files)
open(os.path.join(base_dir, 'VERSION'), 'w').write(get_version_from_git())
-class my_install_scripts(install_scripts):
- def __symlink(self, src, dst):
- dest_name, _ = self.copy_file(
- src,
- os.path.join(self.install_dir, dst),
- link='sym')
- self.outfiles.append(dest_name)
-
+class my_install_data(install_data):
def run(self):
- install_scripts.run(self)
- self.__symlink('chromium-depot-tool', 'drover')
- self.__symlink('chromium-depot-tool', 'gcl')
- self.__symlink('chromium-depot-tool', 'gclient')
+ install_data.run(self)
+ for tool in ['drover', 'gcl', 'gclient']:
+ os.symlink(
+ os.path.join('..', 'libexec', 'chromium-depot-tool'),
+ os.path.join(self.install_dir, 'bin', tool))
-scripts = ["v8-extract-version"]
+scripts = ["scripts/v8-extract-version"]
+data_files = []
cmdclass = {'sdist': my_sdist}
@@ -68,14 +64,16 @@ args = sys.argv[1:]
enable_subversion = get_option(args, 'subversion', default=True)
if enable_subversion:
- scripts += ["chromium-depot-tool", "v8-create-tarball"]
- cmdclass['install_scripts'] = my_install_scripts
+ scripts += ["scripts/v8-create-tarball"]
+ data_files += [["libexec", ["scripts/chromium-depot-tool"]]]
+ cmdclass['install_data'] = my_install_data
setup(
name="chromium-tools",
version=get_version(),
py_modules=["chromium_tools"],
scripts=scripts,
+ data_files=data_files,
cmdclass=cmdclass,
script_args=args
)
next reply other threads:[~2011-02-22 15:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-22 15:38 Paweł Hajdan, Jr. [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-04-27 9:57 [gentoo-commits] proj/chromium-tools:master commit in: scripts/, / Paweł Hajdan
2012-02-27 15:31 Paweł Hajdan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8b2a44f38c35fd7ee0854cd12a85e8b314de676.phajdan.jr@gentoo \
--to=phajdan.jr@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox