<div dir="ltr"><div dir="ltr">On Sun, Jul 18, 2021 at 2:59 PM Gary Mills <<a href="mailto:gary_mills@fastmail.fm">gary_mills@fastmail.fm</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm working on a python package that imports many other python<br>
modules.  So far I've discovered two python modules that don't have<br>
corresponding packages in OI.  There should be dependancies on these<br>
two packages, but the automatic mechanism seems not to add them.<br>
How can I add them myself?  Do I do it directly in the P5M file?<br>
<br>
The original package builds and installs with the setup.py method.<br>
It doesn't check for dependancies at all.  I don't notice missing<br>
dependancies until I test the module and get an error message when<br>
an "import" fails.  I'd like to be able to build a package that does<br>
not have this problem.<br></blockquote><div><br></div><div>I've also noticed the setup.py builds quite happily whether dependencies<br></div><div>are present or not.<br><br></div><div>All I do is look at the requires.txt file. Usually present in the .egg-info<br></div><div>directory, which may be present in the source or in the build tree.<br></div><div>(Some modules are smart enough to handle the fact that dependencies<br></div><div>vary between python versions, too.) <br></div></div><br>-- <br><div dir="ltr" class="gmail_signature">-Peter Tribble<br><a href="http://www.petertribble.co.uk/" target="_blank">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/" target="_blank">http://ptribble.blogspot.com/</a></div></div>