forked from strath-sdr/RFSoC-Book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
27 lines (24 loc) · 845 Bytes
/
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
# library
import os
from setuptools import find_packages, setup
# variable
package_name = "rfsoc_book"
# function
def generate_pkg_dirs(pkgname):
data_files = []
for directory in os.walk(os.path.join(os.getcwd(), pkgname)):
for file in directory[2]:
data_files.append("".join([directory[0],"/",file]))
return data_files
# setuptools
setup(
name=package_name,
version='1.1.0',
install_requires=[
"strath_sdfec @ https://github.com/strath-sdr/rfsoc_sdfec/releases/download/v1.1.0/rfsoc_sdfec.tar.gz",
"rfsoc_freqplan @ https://github.com/strath-sdr/rfsoc_frequency_planner/archive/v0.3.3.tar.gz"
],
author="strath-sdr",
packages=find_packages(),
package_data={"" : generate_pkg_dirs(package_name)},
description="University of Strathclyde (StrathSDR) RFSoC Book.")