<html><body><div>Hello Gary,</div><div><br></div><div>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.<br></div><div><br></div><div>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:</div><div>https://src.fedoraproject.org/</div><div>https://build.opensuse.org/</div><div><br></div><div>I hope this was helpful.</div><div>Best regards,</div><div>Nona<br></div><div><br></div><aside>
---------- Původní e-mail ----------<br>
Od: Gary Mills <gary_mills@fastmail.fm><br>
Komu: oi-dev@openindiana.org<br>
Datum: 18. 7. 2021 16:02:07<br>
Předmět: [oi-dev] What to do with python module dependancies?
</aside><br><blockquote data-email="gary_mills@fastmail.fm">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>
<br>
<br>-- 
<br>-Gary Mills-          -refurb-                -Winnipeg, Manitoba, Canada-
<br>
<br>_______________________________________________
<br>oi-dev mailing list
<br>oi-dev@openindiana.org
<br>https://openindiana.org/mailman/listinfo/oi-dev
<br></blockquote></body></html>