Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
02d41450
Commit
02d41450
authored
Jul 12, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt at improving setup.py for embedding Cython stuff
parent
b8f549b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
setup.py
setup.py
+9
-3
No files found.
setup.py
View file @
02d41450
...
...
@@ -24,8 +24,10 @@ from distutils.command.install_data import install_data as _install_data
try
:
from
Cython.Build
import
cythonize
extensions
=
cythonize
(
"printrun/gcoder_line.pyx"
)
from
Cython.Distutils
import
build_ext
except
ImportError
:
extensions
=
None
build_ext
=
None
INSTALLED_FILES
=
"installed_files"
...
...
@@ -142,6 +144,12 @@ for extra_data_dir in extra_data_dirs:
destpath
=
os
.
path
.
join
(
"share"
,
"pronterface"
,
basedir
)
data_files
.
append
((
destpath
,
files
))
cmdclass
=
{
"uninstall"
:
uninstall
,
"install"
:
install
,
"install_data"
:
install_data
}
if
build_ext
:
cmdclass
[
'build_ext'
]
=
build_ext
setup
(
name
=
"Printrun"
,
description
=
"Host software for 3D printers"
,
...
...
@@ -151,8 +159,6 @@ setup (
data_files
=
data_files
,
packages
=
[
"printrun"
,
"printrun.cairosvg"
,
"printrun.server"
,
"printrun.gl"
,
"printrun.gl.libtatlin"
],
scripts
=
[
"pronsole.py"
,
"pronterface.py"
,
"plater.py"
,
"printcore.py"
,
"prontserve.py"
],
cmdclass
=
{
"uninstall"
:
uninstall
,
"install"
:
install
,
"install_data"
:
install_data
},
cmdclass
=
cmdclass
,
ext_modules
=
extensions
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment