Search code examples
pythonsetuptoolspypipython-packaging

How do you add a package install requirement on python to upload my package to PyPi?


So what i mean by the title is like this, I'm gonna create a python package and it needs pygame for my package to work, but I can't figure out how do you add that in setup.py

from setuptools import setup

setup(
    ...
    install_reqs=[
        "pygame",
    ],
    ...
)

I change install_reqs into???


Solution

  • install_requires.

    See documentation of the setup function