1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/usr/bin/env python
import distutils.command.build_py
from distutils.core import setup
import re
def get_version():
# Try from version.py. Reads it to avoid loading the shared library.
r = re.compile("^__version__ = '(.*)'\n")
try:
l = open('libghdl/version.py').read()
m = r.match(l)
if m:
return m.group(1)
except:
pass
raise Exception("Cannot find version")
# Extract the version now, as setup() may change the current directory.
version=get_version()
setup(
name='pyghdl',
version=version,
description='VHDL Language Server and interface to ghdl, a VHDL analyzer',
long_description=open('README').read(),
author='Tristan Gingold',
author_email='tgingold@free.fr',
url='http://github.com/ghdl/ghdl',
license='GPL-2.0-or-later',
package_dir={
'libghdl': 'libghdl',
'vhdl_langserver': 'vhdl_langserver'
},
packages=[
'libghdl',
'libghdl.thin',
'libghdl.thin.vhdl',
'vhdl_langserver'
],
# List run-time dependencies here. For an analysis of "install_requires"
# vs pip's requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
'attrs'
],
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
entry_points={
'console_scripts': [
'ghdl-ls = vhdl_langserver.main:main',
]
},
)
|