Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
378b3e7a
Commit
378b3e7a
authored
7 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
Fix package name & install path logic for Python 3
parent
61e6d215
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildconfig/Jenkins/buildscript
+12
-6
12 additions, 6 deletions
buildconfig/Jenkins/buildscript
with
12 additions
and
6 deletions
buildconfig/Jenkins/buildscript
+
12
−
6
View file @
378b3e7a
...
@@ -169,10 +169,15 @@ fi
...
@@ -169,10 +169,15 @@ fi
###############################################################################
###############################################################################
# Check if this is a Python 3 build and set CMake arguments.
# Check if this is a Python 3 build and set CMake arguments.
###############################################################################
###############################################################################
PY2_BUILD
=
false
PY3_BUILD
=
false
if
[[
${
JOB_NAME
}
==
*
python3
*
]]
;
then
if
[[
${
JOB_NAME
}
==
*
python3
*
]]
;
then
PY3_BUILD
=
true
PYTHON3_EXECUTABLE
=
`
which python3
`
PYTHON3_EXECUTABLE
=
`
which python3
`
DIST_FLAGS
=
"
${
DIST_FLAGS
}
-DPYTHON_EXECUTABLE=
$PYTHON3_EXECUTABLE
"
DIST_FLAGS
=
"
${
DIST_FLAGS
}
-DPYTHON_EXECUTABLE=
$PYTHON3_EXECUTABLE
"
PARAVIEW_DIR
=
"
${
PARAVIEW_DIR
}
-python3"
PARAVIEW_DIR
=
"
${
PARAVIEW_DIR
}
-python3"
else
PY2_BUILD
=
true
fi
fi
###############################################################################
###############################################################################
...
@@ -191,14 +196,15 @@ if [[ "$BUILDPKG" == true ]]; then
...
@@ -191,14 +196,15 @@ if [[ "$BUILDPKG" == true ]]; then
PACKAGE_SUFFIX
=
"unstable"
PACKAGE_SUFFIX
=
"unstable"
fi
fi
if
[[
${
JOB_NAME
}
==
*
release
*
]]
;
then
if
[[
${
PY3_BUILD
}
==
true
]]
;
then
# No suffix and traditional install path
# Add '-python3' to package name and install path
PACKAGE_SUFFIX
=
${
PACKAGE_SUFFIX
}
-python3
fi
if
[[
${
JOB_NAME
}
==
*
release
*
]]
&&
[[
${
PY2_BUILD
}
==
true
]]
;
then
# No suffix and traditional install path for python 2 release build
PACKAGINGVARS
=
"
${
PACKAGINGVARS
}
-DCMAKE_INSTALL_PREFIX=/opt/Mantid -DCPACK_PACKAGE_SUFFIX="
PACKAGINGVARS
=
"
${
PACKAGINGVARS
}
-DCMAKE_INSTALL_PREFIX=/opt/Mantid -DCPACK_PACKAGE_SUFFIX="
else
else
if
[[
${
JOB_NAME
}
==
*
python3
*
]]
;
then
# everything else uses lower-case values
# Add '-python3' to package name and install path
PACKAGE_SUFFIX
=
${
PACKAGE_SUFFIX
}
-python3
fi
PACKAGINGVARS
=
"
${
PACKAGINGVARS
}
-DCMAKE_INSTALL_PREFIX=/opt/mantid
${
PACKAGE_SUFFIX
}
-DCPACK_PACKAGE_SUFFIX=
${
PACKAGE_SUFFIX
}
"
PACKAGINGVARS
=
"
${
PACKAGINGVARS
}
-DCMAKE_INSTALL_PREFIX=/opt/mantid
${
PACKAGE_SUFFIX
}
-DCPACK_PACKAGE_SUFFIX=
${
PACKAGE_SUFFIX
}
"
fi
fi
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment