forked from cfelton/rhea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·39 lines (31 loc) · 1.06 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
#
# Copyright (c) 2013-2015 Christopher L. Felton
#
try:
from setuptools import setup
from setuptools import find_packages
except ImportError:
from distutils.core import setup
from pkgutil import walk_packages
import rhea
# many pypy installs don't have setuptools (?)
def _find_packages(path='.', prefix=''):
yield prefix
prefix=prefix + "."
for _, name, ispkg in walk_packages(path,
prefix,
onerror=lambda x: x):
if ispkg:
yield name
def find_packages():
return list(_find_packages(rhea.__path__, rhea.__name__))
setup(name="rhea",
version="0.0.1", # release 0 or version 0.1
description="collection of HDL cores ",
license="MIT",
platforms=["Any"],
keywords="HDL MyHDL FPGA",
packages=find_packages(),
# @todo need to add the examples and test directories,
# copy it over ...
)