Don't just check for setup.cfg.

This commit is contained in:
Jelmer Vernooij 2021-03-27 18:05:27 +00:00
parent 9fe6ec8dbc
commit f5aa0b3a3a

View file

@ -522,9 +522,6 @@ class SetupPy(BuildSystem):
if os.path.exists(os.path.join(path, "setup.py")):
logging.debug("Found setup.py, assuming python project.")
return cls(path)
if os.path.exists(os.path.join(path, "setup.cfg")):
logging.debug("Found setup.py, assuming python project.")
return cls(path)
if os.path.exists(os.path.join(path, "pyproject.toml")):
logging.debug("Found pyproject.toml, assuming python project.")
return cls(path)