Thanks for tour help.

Le ven. 27 mars 2020 à 20:52, Tzu-ping Chung <uranu...@gmail.com> 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
> <https://www.python.org/dev/peps/pep-0427/> 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 <samuel.mu...@gmail.com> 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 <uranu...@gmail.com> 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 <samuel.mu...@gmail.com> 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/

Reply via email to