-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathsetup.py
50 lines (44 loc) · 1.84 KB
/
setup.py
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
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from pyfda.pyfda import __version__
# @todo: WIP see https://packaging.python.org/en/latest/index.html
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = 'pyfda',
# see PEP440 for versioning information
version = __version__,
description = ('pyfda is a tool for designing and analysing discrete time '
'filters written in python with a graphical user interface.'),
long_description = read('README.txt'),
url = 'https://github.com/chipmuenk/pyFDA',
author = 'Christian Munker',
author_email = '',
license = 'Apache',
packages = find_packages(exclude=('contrib', 'docs', 'test')),
package_data = {'pyfda': ['images/icons/*']},
data_files = [('pyfda/filter_design', ['pyfda/filter_design/filter_list.txt'])],
entry_points = {
'console_scripts': [
'pyfdax = pyfda:main',
],
'gui_scripts': [
'pyfda_gui = pyfda:main',
]
}
)
"""
On non-Windows platforms (using "setup.py install", "setup.py develop",
or by using EasyInstall), a "pyfdax" script will be installed that imports
"main" from module pyfda. main() is called with no arguments, and the
return value is passed to sys.exit(), so an errorlevel or message to print
to stderr could be provided (not implemented yet).
On Windows, a set of pyfdax.exe and pyfda_gui.exe launchers are created,
alongside a set of pyfdax.py and pyfda_gui.pyw files. The .exe wrappers find
and execute the right version of Python to run the .py or .pyw file.
"""