improv: address Henrii's feedback
Signed-off-by: heitorlessa <lessa@amazon.co.uk>
This commit is contained in:
@@ -310,14 +310,10 @@ def detect_warnings(platform: str, build_options: BuildOptions) -> List[str]:
|
|||||||
|
|
||||||
|
|
||||||
def detect_setup_pyproject_existence(package_dir: str) -> bool:
|
def detect_setup_pyproject_existence(package_dir: str) -> bool:
|
||||||
exists = False
|
return any(
|
||||||
if os.path.exists(os.path.join(package_dir, 'setup.py')):
|
os.path.exists(os.path.join(package_dir, name))
|
||||||
exists = True
|
for name in ["setup.py", "setup.cfg", "pyproject.toml"]
|
||||||
|
)
|
||||||
if os.path.exists(os.path.join(package_dir, 'pyproject.toml')):
|
|
||||||
exists = True
|
|
||||||
|
|
||||||
return exists
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user