Commit f78b4f38 authored by Tristan Gingold's avatar Tristan Gingold

Rework setup.py to support missing cx_Freeze.

parent 16261594
"""A setuptools setup module for vhdllint."""
"""Distutils script for vhdllint."""
from cx_Freeze import setup, Executable
try:
# In the case cx_Freeze is installed.
from cx_Freeze import setup, Executable
import os
exe = {'nt': '.exe'}.get(os.name, '')
kwargs = {'executables': [Executable('vhdllint-ohwr',
targetName='vhdllint-ohwr' + exe)]}
except ImportError:
from setuptools import setup
kwargs = {'scripts': ['vhdllint-ohwr']}
setup(
name='vhdllint',
......@@ -39,6 +48,5 @@ setup(
'vhdllint.semrules', 'vhdllint.syntaxrules',
'vhdllint.synthrules'],
install_requires=['libghdl'],
executables=[Executable('ohwr.py',
targetName='vhdllint-ohwr.exe')]
**kwargs
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment