-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
55 lines (43 loc) · 1.55 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
51
52
53
54
55
import os
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
with open("entry_points.ini", "r") as fh:
entry_points = fh.read()
# list of (destination, source_file) tuples
DATA_FILES = [
# ('~/', ['scripts/.xsessionrc',]),
]
# list of (destination, source_dir) tuples
DATA_DIRS = [
('share/monokrom/linuxcnc', 'linuxcnc/'),
]
def data_files_from_dirs(data_dirs):
data_files = []
for dest_dir, source_dir in data_dirs:
dest_dir = os.path.expandvars(dest_dir)
for root, dirs, files in os.walk(source_dir):
root_files = [os.path.join(root, i) for i in files]
dest = os.path.join(dest_dir, os.path.relpath(root, source_dir))
data_files.append((dest, root_files))
return data_files
data_files = [(os.path.expanduser(dest), src_list) for dest, src_list in DATA_FILES]
data_files.extend(data_files_from_dirs(DATA_DIRS))
setup(
name="monokrom-vcp",
version="0.0.1",
author="Kurt Jacobson",
author_email="<doe.john@example.com>",
description="Monochrome style VCPs for LinuxCNC controlled Lathes, Mills and Plasma cutters.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/kurtjacobson/monokrom-vcp",
download_url="https://github.com/kurtjacobson/monokrom-vcp/tarball/master",
packages=find_packages(),
include_package_data=True,
data_files=data_files,
entry_points=entry_points,
# install_requires=[
# 'qtpyvcp',
# ],
)