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
162d8a05
Commit
162d8a05
authored
Jun 13, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build Cython-based gcoder_line.pyx if possible
parent
ce23df4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
setup.py
setup.py
+8
-2
setup_gcoderpyx.py
setup_gcoderpyx.py
+0
-1
No files found.
setup.py
View file @
162d8a05
...
@@ -21,6 +21,11 @@ from stat import *
...
@@ -21,6 +21,11 @@ from stat import *
from
distutils.core
import
setup
from
distutils.core
import
setup
from
distutils.command.install
import
install
as
_install
from
distutils.command.install
import
install
as
_install
from
distutils.command.install_data
import
install_data
as
_install_data
from
distutils.command.install_data
import
install_data
as
_install_data
try
:
from
Cython.Build
import
cythonize
extensions
=
cythonize
(
"printrun/gcoder_line.pyx"
)
except
ImportError
:
extensions
=
None
INSTALLED_FILES
=
"installed_files"
INSTALLED_FILES
=
"installed_files"
...
@@ -84,7 +89,7 @@ class uninstall (_install):
...
@@ -84,7 +89,7 @@ class uninstall (_install):
except
:
except
:
self
.
warn
(
"Could not remove file
%
s"
%
file
)
self
.
warn
(
"Could not remove file
%
s"
%
file
)
ops
=
(
"install"
,
"build"
,
"sdist"
,
"uninstall"
,
"clean"
)
ops
=
(
"install"
,
"build"
,
"sdist"
,
"uninstall"
,
"clean"
,
"build_ext"
)
if
len
(
sys
.
argv
)
<
2
or
sys
.
argv
[
1
]
not
in
ops
:
if
len
(
sys
.
argv
)
<
2
or
sys
.
argv
[
1
]
not
in
ops
:
print
"Please specify operation :
%
s"
%
" | "
.
join
(
ops
)
print
"Please specify operation :
%
s"
%
" | "
.
join
(
ops
)
...
@@ -148,5 +153,6 @@ setup (
...
@@ -148,5 +153,6 @@ setup (
scripts
=
[
"pronsole.py"
,
"pronterface.py"
,
"plater.py"
,
"printcore.py"
,
"prontserve.py"
],
scripts
=
[
"pronsole.py"
,
"pronterface.py"
,
"plater.py"
,
"printcore.py"
,
"prontserve.py"
],
cmdclass
=
{
"uninstall"
:
uninstall
,
cmdclass
=
{
"uninstall"
:
uninstall
,
"install"
:
install
,
"install"
:
install
,
"install_data"
:
install_data
}
"install_data"
:
install_data
},
ext_modules
=
extensions
,
)
)
setup_gcoderpyx.py
View file @
162d8a05
from
distutils.core
import
setup
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
from
Cython.Build
import
cythonize
setup
(
setup
(
...
...
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