Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #7898 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2015-11-25 13:10 +0100 |
| Last post | 2015-11-26 20:10 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.maint.python
How to tweak homebrew install target for Gubbins Andreas Tille <andreas@an3as.eu> - 2015-11-25 13:10 +0100
How to manually install python scripts and needed modules (Was: How to tweak homebrew install target for Gubbins) Andreas Tille <andreas@an3as.eu> - 2015-11-26 19:50 +0100
Re: How to manually install python scripts and needed modules (Was: How to tweak homebrew install target for Gubbins) Piotr Ożarowski <piotr@debian.org> - 2015-11-26 20:10 +0100
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2015-11-25 13:10 +0100 |
| Subject | How to tweak homebrew install target for Gubbins |
| Message-ID | <qyH3C-67h-67@gated-at.bofh.it> |
Hi,
I'm working on packaging Gubbins for the Debian Med team. The build
currently ends up in
...
Making install in python
make[2]: Entering directory '/build/gubbins-1.4.3/python'
/usr/bin/python3 setup.py build
running build
running build_py
running build_scripts
make[3]: Entering directory '/build/gubbins-1.4.3/python'
/usr/bin/python3 setup.py install
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/test-easy-install-14282.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.4/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
Makefile:462: recipe for target 'install-exec-local' failed
...
After contacting the author he suspects that's due to the usage of
brew:
For homebrew I don’t let it make install the python dependancies
(line 67), and instead invoke it later in the standard python manner.
I don’t know if this is the best way to do it, but it makes it work
in this instance.
https://github.com/Homebrew/homebrew-science/blob/master/gubbins.rb
Any advise on how to improve things would be welcome
Since I also never stumbled upon brew I wonder what might be the best
way to get a clean install target for the Debian packaging and may be as
a hint for upstream who is very responsive.
Kind regards
Andreas.
[1] git://anonscm.debian.org/debian-med/gubbins.git
--
http://fam-tille.de
[toc] | [next] | [standalone]
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2015-11-26 19:50 +0100 |
| Subject | How to manually install python scripts and needed modules (Was: How to tweak homebrew install target for Gubbins) |
| Message-ID | <qz9Md-us-1@gated-at.bofh.it> |
| In reply to | #7898 |
Hi,
since nobody seems to have any experience with brew in my last
commit to the gubbins packaging git[1] I tried to install the
included python files manually. Unfortunately for the python
module I installed to
/usr/share/pyshared/gubbins
the processing to /usr/lib/python3.4/gubbins does not work. Any
hint how to do this correctly (or is my attempt a bad idea in
general)?
(Any hints to my question below are welcome as well - I just
want to install the python files ...).
Thanks for any help
Andreas.
[1] git://anonscm.debian.org/debian-med/gubbins.git
On Wed, Nov 25, 2015 at 01:04:31PM +0100, Andreas Tille wrote:
> Hi,
>
> I'm working on packaging Gubbins for the Debian Med team. The build
> currently ends up in
>
> ...
> Making install in python
> make[2]: Entering directory '/build/gubbins-1.4.3/python'
> /usr/bin/python3 setup.py build
> running build
> running build_py
> running build_scripts
> make[3]: Entering directory '/build/gubbins-1.4.3/python'
> /usr/bin/python3 setup.py install
> running install
> Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
> error: can't create or remove files in install directory
>
> The following error occurred while trying to add or remove files in the
> installation directory:
>
> [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/test-easy-install-14282.pth'
>
> The installation directory you specified (via --install-dir, --prefix, or
> the distutils default setting) was:
>
> /usr/local/lib/python3.4/dist-packages/
>
> Perhaps your account does not have write access to this directory? If the
> installation directory is a system-owned directory, you may need to sign in
> as the administrator or "root" account. If you do not have administrative
> access to this machine, you may wish to choose a different installation
> directory, preferably one that is listed in your PYTHONPATH environment
> variable.
>
> For information on other options, you may wish to consult the
> documentation at:
>
> https://pythonhosted.org/setuptools/easy_install.html
>
> Please make the appropriate changes for your system and try again.
>
> Makefile:462: recipe for target 'install-exec-local' failed
> ...
>
>
>
> After contacting the author he suspects that's due to the usage of
> brew:
>
> For homebrew I don’t let it make install the python dependancies
> (line 67), and instead invoke it later in the standard python manner.
> I don’t know if this is the best way to do it, but it makes it work
> in this instance.
> https://github.com/Homebrew/homebrew-science/blob/master/gubbins.rb
> Any advise on how to improve things would be welcome
>
> Since I also never stumbled upon brew I wonder what might be the best
> way to get a clean install target for the Debian packaging and may be as
> a hint for upstream who is very responsive.
>
> Kind regards
>
> Andreas.
>
>
> [1] git://anonscm.debian.org/debian-med/gubbins.git
>
> --
> http://fam-tille.de
>
>
--
http://fam-tille.de
[toc] | [prev] | [next] | [standalone]
| From | Piotr Ożarowski <piotr@debian.org> |
|---|---|
| Date | 2015-11-26 20:10 +0100 |
| Subject | Re: How to manually install python scripts and needed modules (Was: How to tweak homebrew install target for Gubbins) |
| Message-ID | <qza5A-Qe-13@gated-at.bofh.it> |
| In reply to | #7909 |
[Andreas Tille, 2015-11-26] > since nobody seems to have any experience with brew in my last > commit to the gubbins packaging git[1] I tried to install the > included python files manually. Unfortunately for the python > module I installed to > > /usr/share/pyshared/gubbins pyshared is an implementation detail of some Python related tools in Debian. Please do not use it. > the processing to /usr/lib/python3.4/gubbins does not work. Any > hint how to do this correctly (or is my attempt a bad idea in > general)? if it's a public Python module, install into /usr/lib/python3/dist-packages/, if not (and name of your binary package suggests that), use anything but that dir, f.e. /usr/share/gubbins/ (remember to install there also scripts or your will have to patch them to update sys.path) -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web