Zenthm
Zenthm

Reputation: 372

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???

Upvotes: 0

Views: 43

Answers (1)

Roland Puntaier
Roland Puntaier

Reputation: 3511

install_requires.

See documentation of the setup function

Upvotes: 1

Related Questions