Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
Added a patch to remove the python2 shebangs
· 2d88a4a6
Thiago Franco de Moraes
authored
Sep 11, 2018
2d88a4a6
undoing invesalius changes in source code
· 0a1dfc00
Thiago Franco de Moraes
authored
Sep 11, 2018
0a1dfc00
Added description to the new patch
· 4ed3755d
Thiago Franco de Moraes
authored
Sep 11, 2018
4ed3755d
Hide whitespace changes
Inline
Side-by-side
debian/patches/10_remove_python2_shebang.patch
0 → 100644
View file @
4ed3755d
Author: Thiago Franco Moraes
Last-Update: 2018-09-11 14:54:25 -0300
Description: Remove python2 shebangs
diff --git a/app.py b/app.py
index 28dcbdd..2942f04 100644
--- a/app.py
+++ b/app.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
# Copyright: (C) 2001 Centro de Pesquisas Renato Archer
diff --git a/invesalius/data/measures.py b/invesalius/data/measures.py
index 565cf0c..0567116 100644
--- a/invesalius/data/measures.py
+++ b/invesalius/data/measures.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from six import with_metaclass
diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py
index 0b34ce0..a5d3cae 100755
--- a/invesalius/data/viewer_slice.py
+++ b/invesalius/data/viewer_slice.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
diff --git a/invesalius/data/viewer_volume.py b/invesalius/data/viewer_volume.py
index 3de5335..233e2b1 100755
--- a/invesalius/data/viewer_volume.py
+++ b/invesalius/data/viewer_volume.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
#--------------------------------------------------------------------------
diff --git a/invesalius/gui/data_notebook.py b/invesalius/gui/data_notebook.py
index ef119a9..e9772a1 100644
--- a/invesalius/gui/data_notebook.py
+++ b/invesalius/gui/data_notebook.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py
index c9793db..aa2dde1 100644
--- a/invesalius/gui/dialogs.py
+++ b/invesalius/gui/dialogs.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
diff --git a/invesalius/gui/dicom_preview_panel.py b/invesalius/gui/dicom_preview_panel.py
index 5305eec..d9fa764 100644
--- a/invesalius/gui/dicom_preview_panel.py
+++ b/invesalius/gui/dicom_preview_panel.py
@@ -17,7 +17,6 @@
# detalhes.
#--------------------------------------------------------------------------
-#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#TODO: To create a beautiful API
diff --git a/invesalius/gui/widgets/gradient.py b/invesalius/gui/widgets/gradient.py
index fe246ae..29d7551 100755
--- a/invesalius/gui/widgets/gradient.py
+++ b/invesalius/gui/widgets/gradient.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#--------------------------------------------------------------------------
diff --git a/invesalius/gui/widgets/slice_menu.py b/invesalius/gui/widgets/slice_menu.py
index cdb66a4..737be02 100644
--- a/invesalius/gui/widgets/slice_menu.py
+++ b/invesalius/gui/widgets/slice_menu.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#--------------------------------------------------------------------------
diff --git a/invesalius/i18n.py b/invesalius/i18n.py
index c47340a..7259026 100644
--- a/invesalius/i18n.py
+++ b/invesalius/i18n.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#--------------------------------------------------------------------------
diff --git a/invesalius/math_utils.py b/invesalius/math_utils.py
index dfe9a86..eddbb82 100644
--- a/invesalius/math_utils.py
+++ b/invesalius/math_utils.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
debian/patches/series
View file @
4ed3755d
10_sample_path.patch
10_import_cython_modules.patch
10_remove_python2_shebang.patch
invesalius/constants.py
View file @
4ed3755d
...
...
@@ -355,7 +355,7 @@ if hasattr(sys,"frozen") and (sys.frozen == "windows_exe"\
else
:
ICON_DIR
=
os
.
path
.
abspath
(
os
.
path
.
join
(
FILE_PATH
,
u
'
..
'
,
u
'
icons
'
))
SAMPLE_DIR
=
u
"
/usr/share/doc/invesalius-examples/ex
amples
/
"
SAMPLE_DIR
=
os
.
path
.
abspath
(
os
.
path
.
join
(
FILE_PATH
,
u
'
..
'
,
u
'
s
amples
'
))
DOC_DIR
=
os
.
path
.
abspath
(
os
.
path
.
join
(
FILE_PATH
,
u
'
..
'
,
u
'
docs
'
))
folder
=
RAYCASTING_PRESETS_DIRECTORY
=
os
.
path
.
abspath
(
os
.
path
.
join
(
u
"
.
"
,
...
...
invesalius/data/mask.py
View file @
4ed3755d
...
...
@@ -30,7 +30,7 @@ import invesalius.constants as const
import
invesalius.data.imagedata_utils
as
iu
import
invesalius.session
as
ses
from
invesalius_cy
import
floodfill
from
.
import
floodfill
from
wx.lib.pubsub
import
pub
as
Publisher
from
scipy
import
ndimage
...
...
invesalius/data/slice_.py
View file @
4ed3755d
...
...
@@ -33,9 +33,9 @@ import invesalius.session as ses
import
invesalius.utils
as
utils
from
invesalius.data.mask
import
Mask
from
invesalius.project
import
Project
from
invesalius
_cy
import
mips
from
invesalius
.data
import
mips
from
invesalius
_cy
import
transforms
from
invesalius
.data
import
transforms
import
invesalius.data.transformations
as
transformations
OTHER
=
0
PLIST
=
1
...
...
invesalius/data/styles.py
View file @
4ed3755d
...
...
@@ -47,7 +47,7 @@ from skimage.morphology import watershed
import
invesalius.gui.dialogs
as
dialogs
from
invesalius.data.measures
import
MeasureData
from
invesalius_cy
import
floodfill
from
.
import
floodfill
import
invesalius.data.watershed_process
as
watershed_process
import
invesalius.utils
as
utils
...
...
invesalius/data/surface.py
View file @
4ed3755d
...
...
@@ -48,7 +48,7 @@ import invesalius.data.surface_process as surface_process
import
invesalius.utils
as
utl
import
invesalius.data.vtk_utils
as
vu
from
invesalius
_cy
import
cy_mesh
from
invesalius
.data
import
cy_mesh
# TODO: Verificar ReleaseDataFlagOn and SetSource
class
Surface
():
...
...
setup.py
View file @
4ed3755d
...
...
@@ -11,26 +11,26 @@ import numpy
if
sys
.
platform
.
startswith
(
'
linux
'
):
setup
(
cmdclass
=
{
'
build_ext
'
:
build_ext
},
ext_modules
=
cythonize
([
Extension
(
"
invesalius
_cy
.mips
"
,
[
"
invesalius
_cy
/mips.pyx
"
],
ext_modules
=
cythonize
([
Extension
(
"
invesalius
.data
.mips
"
,
[
"
invesalius
/data
/mips.pyx
"
],
include_dirs
=
[
numpy
.
get_include
()],
extra_compile_args
=
[
'
-fopenmp
'
],
extra_link_args
=
[
'
-fopenmp
'
]),
Extension
(
"
invesalius
_cy
.interpolation
"
,
[
"
invesalius
_cy
/interpolation.pyx
"
],
Extension
(
"
invesalius
.data
.interpolation
"
,
[
"
invesalius
/data
/interpolation.pyx
"
],
include_dirs
=
[
numpy
.
get_include
()],
extra_compile_args
=
[
'
-fopenmp
'
,],
extra_link_args
=
[
'
-fopenmp
'
,]),
Extension
(
"
invesalius
_cy
.transforms
"
,
[
"
invesalius
_cy
/transforms.pyx
"
],
Extension
(
"
invesalius
.data
.transforms
"
,
[
"
invesalius
/data
/transforms.pyx
"
],
include_dirs
=
[
numpy
.
get_include
()],
extra_compile_args
=
[
'
-fopenmp
'
,],
extra_link_args
=
[
'
-fopenmp
'
,]),
Extension
(
"
invesalius
_cy
.floodfill
"
,
[
"
invesalius
_cy
/floodfill.pyx
"
],
Extension
(
"
invesalius
.data
.floodfill
"
,
[
"
invesalius
/data
/floodfill.pyx
"
],
include_dirs
=
[
numpy
.
get_include
()],
language
=
'
c++
'
,),
Extension
(
"
invesalius
_cy
.cy_mesh
"
,
[
"
invesalius
_cy
/cy_mesh.pyx
"
],
Extension
(
"
invesalius
.data
.cy_mesh
"
,
[
"
invesalius
/data
/cy_mesh.pyx
"
],
include_dirs
=
[
numpy
.
get_include
()],
extra_compile_args
=
[
'
-fopenmp
'
,
'
-std=c++11
'
],
extra_link_args
=
[
'
-fopenmp
'
,
'
-std=c++11
'
],
...
...