mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
c4ec49e125
The current check compares the integers split out from `meson --version` one by one. This is an ad-hoc version comparison algorithm with a few flaws, notably that it doesn't truly understand how version components fit together, and that broke once Meson bumped the major version. There are other potential issues that could show up but haven't yet, such as versions with words in them (release candidates). The packaging module is a high-quality library that provides a standard version parsing algorithm, with which you can simply say "is this version object greater than that one". Use it instead. Fixes #1545
65 lines
2.1 KiB
Python
Executable file
65 lines
2.1 KiB
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
from setuptools import setup
|
|
from setuptools import find_packages
|
|
|
|
|
|
setup(
|
|
name="litex",
|
|
description="Python SoC/Core builder for building FPGA based systems.",
|
|
author="Florent Kermarrec",
|
|
author_email="florent@enjoy-digital.fr",
|
|
url="http://enjoy-digital.fr",
|
|
download_url="https://github.com/enjoy-digital/litex",
|
|
test_suite="test",
|
|
license="BSD",
|
|
python_requires="~=3.6",
|
|
install_requires=[
|
|
"packaging",
|
|
"pyserial",
|
|
"requests",
|
|
],
|
|
packages=find_packages(exclude=("test*", "sim*", "doc*")),
|
|
include_package_data=True,
|
|
package_data={
|
|
'litex.soc.doc': ['static/*']
|
|
},
|
|
platforms=["Any"],
|
|
keywords="HDL ASIC FPGA hardware design",
|
|
classifiers=[
|
|
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
|
|
"Environment :: Console",
|
|
"Development Status :: Alpha",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: BSD License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python",
|
|
],
|
|
entry_points={
|
|
"console_scripts": [
|
|
# Terminal/Server/Client.
|
|
"litex_term = litex.tools.litex_term:main",
|
|
"litex_server = litex.tools.litex_server:main",
|
|
"litex_cli = litex.tools.litex_client:main",
|
|
|
|
# SoC Generators.
|
|
"litex_soc_gen = litex.tools.litex_soc_gen:main",
|
|
"litex_periph_gen = litex.tools.litex_periph_gen:main",
|
|
|
|
# Simulation.
|
|
"litex_sim=litex.tools.litex_sim:main",
|
|
|
|
# Demos.
|
|
"litex_bare_metal_demo=litex.soc.software.demo.demo:main",
|
|
|
|
# Export tools.
|
|
"litex_json2dts_linux = litex.tools.litex_json2dts_linux:main",
|
|
"litex_json2dts_zephyr = litex.tools.litex_json2dts_zephyr:main",
|
|
"litex_json2renode = litex.tools.litex_json2renode:main",
|
|
|
|
# Development tools.
|
|
"litex_read_verilog = litex.tools.litex_read_verilog:main",
|
|
"litex_contributors = litex.tools.litex_contributors:main",
|
|
],
|
|
},
|
|
)
|