On Sun, Jul 18, 2021 at 2:59 PM Gary Mills <gary_mi...@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/
_______________________________________________
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to