manually add import_metadata, import_resources
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 14:16:18 +0000 (14:16 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 14:16:18 +0000 (14:16 +0000)
setup.py

index ee53017e0ff9311e5f656df15ede7cdb30ce314e..b822e779928cb888171f932bb1eda0a1dc371215 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -23,9 +23,10 @@ setup(
     #long_description="""TODO""",
     license="BSD",
     python_requires="~=3.6",
-    setup_requires=["setuptools_scm"],
+    setup_requires=["setuptools", "setuptools_scm"],
     install_requires=[
-        "setuptools",
+        "importlib_metadata; python_version<'3.8'",  # for __version__ and nmigen._yosys
+         "importlib_resources; python_version<'3.9'", # for nmigen._yosys
         "pyvcd~=0.2.0", # for nmigen.pysim
         "Jinja2~=2.11", # for nmigen.build
     ],