[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] installing a python package without elevated priv
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] installing a python package without elevated privileges |
Date: |
Tue, 21 Mar 2017 09:08:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
The answer would be virtualenvs, but virtualenvs are not fully supported
in PyBOMBS. You might be able to to this by hand, but I've never tried it:
- Create a prefix using the --virtualenv switch
- Manually pip install the package into the virtualenv
- Maybe you need to manually set the package as installed
When the prefix is enabled, so is the virtualenv, so the package should
get picked up.
-- M
On 03/20/2017 09:02 AM, Naceur wrote:
> Hello GR,
>
> I am creating a recipe for pytun as a dependency for an OOT module.
> Is there a way I can tell pybombs to install that while passing --user to
> pip because testing the install tells: pip is using elevated privileges
> .
> .
> .
> PyBOMBS.PackageManager - DEBUG - Checking if package pytun is installed.
> PyBOMBS.install_manager - INFO - Installing package: pytun
> PyBOMBS.PackageManager - DEBUG - install(pytun, static=False)
> PyBOMBS.PackageManager - DEBUG - Using packager pip
> PyBOMBS.Packager.pip - DEBUG - Calling `/home/nae/.local/bin/pip install
> pytun'
> PyBOMBS.monitor_process() - DEBUG - Running with elevated privileges.
> PyBOMBS._process_thread() - DEBUG - Executing command `['sudo', '-H',
> '/home/nae/.local/bin/pip', 'install', 'pytun']'
> sudo: unable to execute /home/nae/.local/bin/pip: Permission denied
> PyBOMBS.monitor_process() - DEBUG - Thread signaled termination or returned
> PyBOMBS.monitor_process() - DEBUG - Return value: 1
> .
> .
> .
>
> Thanks,
>
>
>
> --
> View this message in context:
> http://gnuradio.4.n7.nabble.com/installing-a-python-package-without-elevated-privileges-tp63183.html
> Sent from the GnuRadio mailing list archive at Nabble.com.
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
- [Discuss-gnuradio] installing a python package without elevated privileges, Naceur, 2017/03/20
- Re: [Discuss-gnuradio] installing a python package without elevated privileges,
Martin Braun <=
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, Naceur, 2017/03/21
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, Marcus Müller, 2017/03/21
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, Naceur, 2017/03/21
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, Marcus Müller, 2017/03/21
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, Naceur, 2017/03/22
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, U L, 2017/03/27
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, Martin Braun, 2017/03/31
- Re: [Discuss-gnuradio] installing a python package without elevated privileges, U L, 2017/03/31