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

Peter Tribble peter.tribble at gmail.com
Sun Jul 18 14:08:38 UTC 2021


On Sun, Jul 18, 2021 at 2:59 PM Gary Mills <gary_mills at fastmail.fm> wrote:

> 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.
>

I've also noticed the setup.py builds quite happily whether dependencies
are present or not.

All I do is look at the requires.txt file. Usually present in the .egg-info
directory, which may be present in the source or in the build tree.
(Some modules are smart enough to handle the fact that dependencies
vary between python versions, too.)

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20210718/fa6d4a8c/attachment.html>


More information about the oi-dev mailing list