
This package is deprecated and introduces a massive amount of startup latency. On my machine with 264 installed Python packages, it reduces the time required to `import nmigen` from ~100ms to ~200ms.
49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
from setuptools import setup, find_packages
|
|
|
|
|
|
def scm_version():
|
|
def local_scheme(version):
|
|
if version.tag and not version.distance:
|
|
return version.format_with("")
|
|
else:
|
|
return version.format_choice("+{node}", "+{node}.dirty")
|
|
return {
|
|
"relative_to": __file__,
|
|
"version_scheme": "guess-next-dev",
|
|
"local_scheme": local_scheme
|
|
}
|
|
|
|
|
|
setup(
|
|
name="nmigen",
|
|
use_scm_version=scm_version(),
|
|
author="whitequark",
|
|
author_email="whitequark@whitequark.org",
|
|
description="Python toolbox for building complex digital hardware",
|
|
#long_description="""TODO""",
|
|
license="BSD",
|
|
python_requires="~=3.6",
|
|
setup_requires=["setuptools", "setuptools_scm"],
|
|
install_requires=[
|
|
"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
|
|
],
|
|
extras_require={
|
|
# this version requirement needs to be synchronized with the one in nmigen.back.verilog!
|
|
"builtin-yosys": ["nmigen-yosys>=0.9.*"],
|
|
},
|
|
packages=find_packages(exclude=["*.test*"]),
|
|
entry_points={
|
|
"console_scripts": [
|
|
"nmigen-rpc = nmigen.rpc:main",
|
|
]
|
|
},
|
|
project_urls={
|
|
#"Documentation": "https://nmigen.readthedocs.io/",
|
|
"Source Code": "https://github.com/nmigen/nmigen",
|
|
"Bug Tracker": "https://github.com/nmigen/nmigen/issues",
|
|
},
|
|
)
|