Core metadata specification documents the metadata field Requires-External which seems to be for specifying system (non-python) dependencies.
How do you actually specify this field though? This is what I've tried:
.
├── mypackage
│ └── __init__.py
└── setup.py
Contents of setup.py
from setuptools import setup
setup(
name="mypackage",
description="blah blah",
url='https://example.org',
version="0.1",
packages=["mypackage"],
requires_external=[
"C",
"libpng (>=1.5)",
'make; sys_platform != "win32"',
],
)
When I build this package, that metadata was not included
Metadata-Version: 2.1
Name: mypackage
Version: 0.1
Summary: blah blah
Home-page: https://example.org
License: UNKNOWN
Platform: UNKNOWN
UNKNOWN
So what is the syntax to pass Requires-External to setuptools/distutils? Note: this question is not asking about Requires-Dist metadata.