[Distutils] Re: Pipenv - Use system python lib for one package

2020-03-28 Thread Samuel Mutel
Thanks for tour help.

Le ven. 27 mars 2020 à 20:52, Tzu-ping Chung  a écrit :

> No, a Python package is more than the installed library you find in
> site-packages.
>
> If you know exactly what you want to install, you can try to *repackage* the
> library yourself by supplying the required metadata, and tell Pipenv to
> install from that instead.
>
> The simplest way would be to produce a wheel
>  containing the files you want
> to install, and supply the file to Pipfile like this:
>
> python-apt = { file = ‘file://url/to/you/built/wheel.whl’ }
>
> Since the value is an URL, you can upload the wheel somewhere to install
> on another computer as well.
>
>
> On 28/3/2020, at 03:36, Samuel Mutel  wrote:
>
> I spoke about debian packages but it's a python library installed by a
> package.
>
> So could we install a python library from the system python library folder?
>
> Le ven. 27 mars 2020 à 20:15, Tzu-ping Chung  a
> écrit :
>
>> Hi,
>>
>> In short, no. Pipenv is designed to only manage Python packages, and
>> cannot be used to access a software that’s not available as a Python
>> package.
>>
>> APT’s software package format (DEB) is significantly different from
>> Python’s, and it is not possible to mix them together unless the tool is
>> designed specifically to support such an operation; Pipenv does not try to
>> set foot in this area.
>>
>> TP
>>
>>
>> On 28/3/2020, at 01:30, Samuel Mutel  wrote:
>>
>> Hello,
>>
>> I have a pipfile like this.
>> I would like to install python-apt library but not from pypi but from the
>> system.
>> Is-it possible?
>> This python library is no longer supported on pypi but is supported in
>> the package distribution.
>>
>> [[source]]
>>
>> name = "pypi"
>>
>> url = "https://pypi.org/simple;
>>
>> verify_ssl = true
>>
>>
>>
>> [dev-packages]
>>
>>
>>
>> [packages]
>>
>> ansible = "==2.8.4"
>>
>> ansible-lint = "*"
>>
>> molecule = "*"
>>
>> docker-py = "*"
>>
>>
>>
>> [requires]
>>
>> python_version = "3"
>> --
>> Distutils-SIG mailing list -- distutils-sig@python.org
>> To unsubscribe send an email to distutils-sig-le...@python.org
>> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
>> Message archived at
>> https://mail.python.org/archives/list/distutils-sig@python.org/message/Y5ANHS5NPQE52RZ565EMC7ZNQDUWI5JE/
>>
>>
>>
>
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/HKGFBIPIDXFIAO5VLVVDKUCGH6BMU4ZY/


[Distutils] Re: Pipenv - Use system python lib for one package

2020-03-27 Thread Tzu-ping Chung
No, a Python package is more than the installed library you find in 
site-packages.

If you know exactly what you want to install, you can try to repackage the 
library yourself by supplying the required metadata, and tell Pipenv to install 
from that instead.

The simplest way would be to produce a wheel 
 containing the files you want to 
install, and supply the file to Pipfile like this:

python-apt = { file = ‘file://url/to/you/built/wheel.whl’ }

Since the value is an URL, you can upload the wheel somewhere to install on 
another computer as well.


> On 28/3/2020, at 03:36, Samuel Mutel  wrote:
> 
> I spoke about debian packages but it's a python library installed by a 
> package.
> 
> So could we install a python library from the system python library folder?
> 
> Le ven. 27 mars 2020 à 20:15, Tzu-ping Chung  > a écrit :
> Hi,
> 
> In short, no. Pipenv is designed to only manage Python packages, and cannot 
> be used to access a software that’s not available as a Python package.
> 
> APT’s software package format (DEB) is significantly different from Python’s, 
> and it is not possible to mix them together unless the tool is designed 
> specifically to support such an operation; Pipenv does not try to set foot in 
> this area.
> 
> TP
> 
> 
>> On 28/3/2020, at 01:30, Samuel Mutel > > wrote:
>> 
>> Hello,
>> 
>> I have a pipfile like this.
>> I would like to install python-apt library but not from pypi but from the 
>> system.
>> Is-it possible?
>> This python library is no longer supported on pypi but is supported in the 
>> package distribution.
>> 
>> [[source]]   
>>
>> name = "pypi"
>>
>> url = "https://pypi.org/simple "
>>  
>> verify_ssl = true
>>
>>  
>>
>> [dev-packages]   
>>
>>  
>>
>> [packages]   
>>
>> ansible = "==2.8.4"  
>>
>> ansible-lint = "*"   
>>
>> molecule = "*"   
>>
>> docker-py = "*"  
>>
>>  
>>
>> [requires]   
>>
>> python_version = "3"
>> --
>> Distutils-SIG mailing list -- distutils-sig@python.org 
>> 
>> To unsubscribe send an email to distutils-sig-le...@python.org 
>> 
>> https://mail.python.org/mailman3/lists/distutils-sig.python.org/ 
>> 
>> Message archived at 
>> https://mail.python.org/archives/list/distutils-sig@python.org/message/Y5ANHS5NPQE52RZ565EMC7ZNQDUWI5JE/
>>  
>> 
> 

--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/HAT5IX4MDGT264DNCOUMRHBTMDEX5WVH/


[Distutils] Re: Pipenv - Use system python lib for one package

2020-03-27 Thread Samuel Mutel
I spoke about debian packages but it's a python library installed by a
package.

So could we install a python library from the system python library folder?

Le ven. 27 mars 2020 à 20:15, Tzu-ping Chung  a écrit :

> Hi,
>
> In short, no. Pipenv is designed to only manage Python packages, and
> cannot be used to access a software that’s not available as a Python
> package.
>
> APT’s software package format (DEB) is significantly different from
> Python’s, and it is not possible to mix them together unless the tool is
> designed specifically to support such an operation; Pipenv does not try to
> set foot in this area.
>
> TP
>
>
> On 28/3/2020, at 01:30, Samuel Mutel  wrote:
>
> Hello,
>
> I have a pipfile like this.
> I would like to install python-apt library but not from pypi but from the
> system.
> Is-it possible?
> This python library is no longer supported on pypi but is supported in the
> package distribution.
>
> [[source]]
>
> name = "pypi"
>
> url = "https://pypi.org/simple;
>
> verify_ssl = true
>
>
>
> [dev-packages]
>
>
>
> [packages]
>
> ansible = "==2.8.4"
>
> ansible-lint = "*"
>
> molecule = "*"
>
> docker-py = "*"
>
>
>
> [requires]
>
> python_version = "3"
> --
> Distutils-SIG mailing list -- distutils-sig@python.org
> To unsubscribe send an email to distutils-sig-le...@python.org
> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> Message archived at
> https://mail.python.org/archives/list/distutils-sig@python.org/message/Y5ANHS5NPQE52RZ565EMC7ZNQDUWI5JE/
>
>
>
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/T4EKOUVQAWVHH3PGGUOZVBKOAYPLLNHO/


[Distutils] Re: Pipenv - Use system python lib for one package

2020-03-27 Thread Tzu-ping Chung
Hi,

In short, no. Pipenv is designed to only manage Python packages, and cannot be 
used to access a software that’s not available as a Python package.

APT’s software package format (DEB) is significantly different from Python’s, 
and it is not possible to mix them together unless the tool is designed 
specifically to support such an operation; Pipenv does not try to set foot in 
this area.

TP


> On 28/3/2020, at 01:30, Samuel Mutel  wrote:
> 
> Hello,
> 
> I have a pipfile like this.
> I would like to install python-apt library but not from pypi but from the 
> system.
> Is-it possible?
> This python library is no longer supported on pypi but is supported in the 
> package distribution.
> 
> [[source]]
>   
> name = "pypi" 
>   
> url = "https://pypi.org/simple " 
> 
> verify_ssl = true 
>   
>   
>   
> [dev-packages]
>   
>   
>   
> [packages]
>   
> ansible = "==2.8.4"   
>   
> ansible-lint = "*"
>   
> molecule = "*"
>   
> docker-py = "*"   
>   
>   
>   
> [requires]
>   
> python_version = "3"
> --
> Distutils-SIG mailing list -- distutils-sig@python.org
> To unsubscribe send an email to distutils-sig-le...@python.org
> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> Message archived at 
> https://mail.python.org/archives/list/distutils-sig@python.org/message/Y5ANHS5NPQE52RZ565EMC7ZNQDUWI5JE/

--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/ECZ3CWAI6QPXBYUKTYWRI762YVC4FUPC/