Well, for making a Python package that uses other modules, you have to specify what modules those are in your setup.py
file. Here's something I personally used that I think you should check out, https://realpython.com/pypi-publish-python-package/. Anyways, basically, in your setup.py
, you should be using setuptools.setup()
. In that function, there is a parameter called install_requires
. I believe that is the parameter where you specify all the packages needed for the package you're making. For example, install_requires=["apackage", "anotherpackage", "etc"]
. Hope that makes sense!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…