diff --git a/RaspberryPi_JetsonNano/python/setup.py b/RaspberryPi_JetsonNano/python/dynamic_dependencies.py similarity index 53% rename from RaspberryPi_JetsonNano/python/setup.py rename to RaspberryPi_JetsonNano/python/dynamic_dependencies.py index 37d998efc..0d4465b68 100644 --- a/RaspberryPi_JetsonNano/python/setup.py +++ b/RaspberryPi_JetsonNano/python/dynamic_dependencies.py @@ -1,5 +1,4 @@ -import sys, os -from setuptools import setup +import os dependencies = ['Pillow'] @@ -10,12 +9,5 @@ else: dependencies += ['Jetson.GPIO'] -setup( - name='waveshare-epd', - description='Waveshare e-Paper Display', - author='Waveshare', - package_dir={'': 'lib'}, - packages=['waveshare_epd'], - install_requires=dependencies, -) - +if __name__ == "__main__": + print("\n".join(dependencies)) diff --git a/RaspberryPi_JetsonNano/python/pyproject.toml b/RaspberryPi_JetsonNano/python/pyproject.toml new file mode 100644 index 000000000..b1465a67d --- /dev/null +++ b/RaspberryPi_JetsonNano/python/pyproject.toml @@ -0,0 +1,20 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "waveshare-epd" +description = "Waveshare e-Paper Display" +authors = [ + { name = "Waveshare" } +] +dependencies = ["Pillow"] + +[tool.setuptools] +package-dir = {"" = "lib"} + +[tool.setuptools.packages.find] +where = ["lib"] + +[tool.setuptools.dynamic] +dependencies = {file = "dynamic_dependencies.py"}