余談です。 インストール先について調べていて判ったことを書きます。 インストーラなんですが、etckeeper.spec https://build.opensuse.org/package/view_file/home:Mitsutoshi:branches:utilit... の -------- %install make \ DESTDIR="%{buildroot}" \ PYTHON_INSTALL_OPTS="--prefix=%{_prefix} --root=%{buildroot}" \ install -------- で実現しています。 そしてMakefile http://git.kitenet.net/?p=etckeeper.git;a=blob;f=Makefile は -------- -./etckeeper-bzr/__init__.py install --root=$(DESTDIR) ${PYTHON_INSTALL_OPTS} || echo "** bzr support not installed" echo "** installation successful" -------- と./etckeeper-bzr/__init__,py installを呼んでおり、./etckeeper-bzr/__init__,pyは http://git.kitenet.net/?p=etckeeper.git;a=blob;f=etckeeper-bzr/__init__.py -------- 19 try: 20 from bzrlib.hooks import install_lazy_named_hook 21 except ImportError: 22 from bzrlib.mutabletree import MutableTree 23 MutableTree.hooks.install_named_hook('start_commit', 24 etckeeper_startcommit_hook, 'etckeeper') 25 else: 26 install_lazy_named_hook( 27 "bzrlib.mutabletree", "MutableTree.hooks", 28 'start_commit', etckeeper_ -------- とbazaarのライブラリbzrlib.hooksのinstall_lazy_named_hookを呼んでいます。 http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/view/head:/bzrlib/hooks.py ./etckeeper-bzr/__init__,pyを実行すると ---------
./etckeeper-bzr/__init__.py install running install running build running build_py running install_lib running install_egg_info Removing /usr/lib/python2.7/site-packages/bzr_etckeeper-0.0.0-py2.7.egg-info error: /usr/lib/python2.7/site-packages/bzr_etckeeper-0.0.0-py2.7.egg-info: Permission denied
と/usr/lib64/ではなく/usr/lib/の方にinstallしようとします。 ./etckeeper-bzr/__init__,py --help installを実行すると以下のヘルプメッセージが出ます。 ---------
./etckeeper-bzr/__init__.py --help install Common commands: (see '--help-commands' for more)
setup.py build will build the package underneath 'build/' setup.py install will install the package Global options: --verbose (-v) run verbosely (default) --quiet (-q) run quietly (turns verbosity off) --dry-run (-n) don't actually do anything --help (-h) show detailed help message --no-user-cfg ignore pydistutils.cfg in your home directory Options for 'install' command: --prefix installation prefix --exec-prefix (Unix only) prefix for platform-specific files --home (Unix only) home directory to install under --user install in user site-package '/home/mitsutoshi/.local/lib/python2.7/site-packages' --install-base base installation directory (instead of --prefix or -- home) --install-platbase base installation directory for platform-specific files (instead of --exec-prefix or --home) --root install everything relative to this alternate root directory --install-purelib installation directory for pure Python module distributions --install-platlib installation directory for non-pure module distributions --install-lib installation directory for all module distributions (overrides --install-purelib and --install-platlib) --install-headers installation directory for C/C++ headers --install-scripts installation directory for Python scripts --install-data installation directory for data files --compile (-c) compile .py to .pyc [default] --no-compile don't compile .py files --optimize (-O) also compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0] --force (-f) force installation (overwrite any existing files) --skip-build skip rebuilding everything (for testing/debugging) --record filename in which to record list of installed files --record-rpm filename in which to record list of installed files and directories suitable as filelist for rpm usage: __init__.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: __init__.py --help [cmd1 cmd2 ...] or: __init__.py --help-commands or: __init__.py cmd --help -------- これらのオプションを駆使することで、インストール先を変更することができれば、 Makefileにパッチを当てるだけで対処できるので楽なんですが、 できるんでしょうかねぇ? -- 1xx <ItSANgo@gmail.com> <https://twitter.com/ItSANgo> <http://d.hatena.ne.jp/Itisango/> -- To unsubscribe, e-mail: opensuse-ja+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ja+owner@opensuse.org