forked from OctoPrint/OctoPrint-Slic3r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (31 loc) · 950 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# coding=utf-8
import setuptools
def package_data_dirs(source, sub_folders):
import os
dirs = []
for d in sub_folders:
for dirname, _, files in os.walk(os.path.join(source, d)):
dirname = os.path.relpath(dirname, source)
for f in files:
dirs.append(os.path.join(dirname, f))
return dirs
def params():
name = "OctoPrint-Slic3r"
version = "0.1"
description = "Adds support for slicing via Slic3r from within OctoPrint"
author = "Gina Häußge"
author_email = "[email protected]"
url = "http://github.com/OctoPrint/OctoPrint-Slic3r"
license = "AGPLv3"
packages = ["octoprint_slic3r"]
package_data = {"octoprint_slic3r": package_data_dirs('octoprint_slic3r', ['static', 'templates'])}
include_package_data = True
zip_safe = False
install_requires = open("requirements.txt").read().split("\n")
entry_points = {
"octoprint.plugin": [
"slic3r = octoprint_slic3r"
]
}
return locals()
setuptools.setup(**params())