[oi-dev] What to do with python module dependancies?

Aurélien Larcher aurelien.larcher at gmail.com
Mon Jul 19 10:18:55 UTC 2021


On Sun, Jul 18, 2021 at 4:47 PM Nona Hansel <nona.h at seznam.cz> wrote:

> Hello Gary,
>
> I believe that when you have a packages that has dependencies, these
> dependencies must be added as individual packages themselves. After
> incorporating them (which means create a folder, Makefile, .p5m file and
> separate PR), your python package would find them.
>
> As for knowing in advance how many dependencies a package has, I usually
> check the package in Fedora and Suse and see their spec files:
> https://src.fedoraproject.org/
> https://build.opensuse.org/
>

Also you can have a look at the pypi website.

To verify a posteriori if the dependencies are satisfied you can use the
pipdeptree command, it is packaged at:

https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/python/pipdeptree



>
> I hope this was helpful.
> Best regards,
> Nona
>
> ---------- Původní e-mail ----------
> Od: Gary Mills <gary_mills at fastmail.fm>
> Komu: oi-dev at openindiana.org
> Datum: 18. 7. 2021 16:02:07
> Předmět: [oi-dev] What to do with python module dependancies?
>
> I'm working on a python package that imports many other python
> modules. So far I've discovered two python modules that don't have
> corresponding packages in OI. There should be dependancies on these
> two packages, but the automatic mechanism seems not to add them.
> How can I add them myself? Do I do it directly in the P5M file?
>
> The original package builds and installs with the setup.py method.
> It doesn't check for dependancies at all. I don't notice missing
> dependancies until I test the module and get an error message when
> an "import" fails. I'd like to be able to build a package that does
> not have this problem.
>
>
> --
> -Gary Mills- -refurb- -Winnipeg, Manitoba, Canada-
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
>


-- 
---
Praise the Caffeine embeddings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20210719/e73d1611/attachment-0001.html>


More information about the oi-dev mailing list