Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
fe29d73a
Commit
fe29d73a
authored
Jul 24, 2018
by
eric pellegrini
Browse files
Bugfix with sphinx documentation
parent
72986960
Changes
7
Hide whitespace changes
Inline
Side-by-side
BuildServer/Unix/Debian/deploy.sh
View file @
fe29d73a
...
...
@@ -51,25 +51,14 @@ mkdir -p ${DEBIAN_DIST_DIR}
cd
${
CI_PROJECT_DIR
}
# Build API
${
PYTHONEXE
}
setup.py
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
build_api
${
PYTHONEXE
}
setup.py
build_api build_help
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
${
RED
}
"
"Failed to build MDANSE
API
""
${
NORMAL
}
"
echo
-e
"
${
RED
}
"
"Failed to build MDANSE
Documentation
""
${
NORMAL
}
"
exit
$status
fi
# Build embedded doc
${
PYTHONEXE
}
setup.py
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
build_help
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
${
RED
}
"
"Failed to build MDANSE embedded documentation""
${
NORMAL
}
"
exit
$status
fi
echo
-e
"
${
BLUE
}
""Installing MDANSE""
${
NORMAL
}
"
# Copy the localy installed ScientificPython, MMTK and MDANSE
cp
-r
${
CI_TEMP_INSTALL_DIR
}
/lib/python2.7/site-packages/Scientific
${
DEBIAN_DIST_DIR
}
cp
-r
${
CI_TEMP_INSTALL_DIR
}
/lib/python2.7/site-packages/MMTK
${
DEBIAN_DIST_DIR
}
...
...
BuildServer/Unix/MacOS/deploy.sh
View file @
fe29d73a
...
...
@@ -13,6 +13,15 @@ cd ${CI_PROJECT_DIR}
export
MDANSE_APP_DIR
=
${
CI_TEMP_DIR
}
/dist/MDANSE.app
# Build API
${
PYTHONEXE
}
setup.py build_api build_help
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
${
RED
}
"
"Failed to build MDANSE Documentation""
${
NORMAL
}
"
exit
$status
fi
#############################
# PACKAGING
#############################
...
...
@@ -89,3 +98,5 @@ hdiutil unmount /Volumes/MDANSE -force -quiet
sleep
5
${
CI_PROJECT_DIR
}
/BuildServer/Unix/MacOS/Resources/dmg/create-dmg
--background
"
${
CI_PROJECT_DIR
}
/BuildServer/Unix/MacOS/Resources/dmg/dmg_background.jpg"
--volname
"MDANSE"
--window-pos
200 120
--window-size
800 400
--icon
MDANSE.app 200 190
--hide-extension
MDANSE.app
--app-drop-link
600 185
"
${
MDANSE_DMG
}
"
${
CI_TEMP_DIR
}
/dist
mv
${
CI_PROJECT_DIR
}
/BuildServer/Unix/MacOS/
${
MDANSE_DMG
}
${
CI_PROJECT_DIR
}
BuildServer/Unix/build.sh
View file @
fe29d73a
#!/bin/bash
cd
${
CI_
TEMP
_DIR
}
cd
${
CI_
PROJECT
_DIR
}
#############################
# BUILDING DEPENDENCIES
...
...
@@ -12,7 +12,7 @@ git clone https://code.ill.fr/scientific-software/scientific-python.git
cd
scientific-python
git checkout master
${
PYTHONEXE
}
setup.py
build
--build-base
=
${
CI_TEMP_BUILD_DIR
}
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
${
PYTHONEXE
}
setup.py
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
${
RED
}
"
"Failed to build/install Scientific""
${
NORMAL
}
"
...
...
@@ -21,7 +21,7 @@ fi
cp
${
CI_TEMP_INSTALL_DIR
}
/include/python2.7/Scientific/netcdf.h
${
CI_TEMP_INSTALL_DIR
}
/include/python2.7/
cd
${
CI_
TEMP
_DIR
}
cd
${
CI_
PROJECT
_DIR
}
# Build ILL version of MMTK
echo
-e
"
${
BLUE
}
""Building MMTK""
${
NORMAL
}
"
...
...
@@ -33,7 +33,7 @@ git checkout master
# Env var needed by MMTK
export
NETCDF_HEADER_FILE_PATH
=
${
CI_TEMP_INSTALL_DIR
}
/include/python2.7/
${
PYTHONEXE
}
setup.py
build
--build-base
=
${
CI_TEMP_BUILD_DIR
}
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
${
PYTHONEXE
}
setup.py
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
${
RED
}
"
"Failed to build/install MMTK""
${
NORMAL
}
"
...
...
@@ -48,11 +48,11 @@ echo -e "${BLUE}""Building MDANSE""${NORMAL}"
cd
${
CI_PROJECT_DIR
}
# Now build last version and install it
${
PYTHONEXE
}
setup.py
build
--build-base
=
${
CI_TEMP_BUILD_DIR
}
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
${
PYTHONEXE
}
setup.py
install
--prefix
=
${
CI_TEMP_INSTALL_DIR
}
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
${
RED
}
"
"Failed to build
/install
MDANSE""
${
NORMAL
}
"
echo
-e
"
${
RED
}
"
"Failed to build MDANSE""
${
NORMAL
}
"
exit
$status
fi
BuildServer/Unix/setup_ci.sh
View file @
fe29d73a
...
...
@@ -7,10 +7,11 @@ fi
export
CI_TEMP_DIR
=
${
CI_PROJECT_DIR
}
/temp
export
CI_TEMP_BUILD_DIR
=
${
CI_PROJECT_DIR
}
/temp/build
export
CI_TEMP_BUILD_DIR
=
${
CI_PROJECT_DIR
}
/build
export
CI_TEMP_INSTALL_DIR
=
${
CI_PROJECT_DIR
}
/temp/install
export
PYTHONPATH
=
${
CI_TEMP_INSTALL_DIR
}
/lib/python2.7/site-packages:
${
PYTHONPATH
}
export
PYTHONPATH
=
${
CI_TEMP_INSTALL_DIR
}
/lib/python2.7/site-packages
/
:
${
PYTHONPATH
}
mkdir
-p
${
CI_TEMP_DIR
}
...
...
@@ -19,6 +20,8 @@ cd ${CI_PROJECT_DIR}
# Get revision number from Git
if
[
-z
${
CI_COMMIT_SHA
}
]
;
then
export
CI_COMMIT_ID
=
$(
git rev-parse HEAD
)
else
export
CI_COMMIT_ID
=
${
CI_COMMIT_SHA
}
fi
export
CI_COMMIT_ID
=
${
CI_COMMIT_ID
:0:8
}
...
...
BuildServer/Windows/build.bat
View file @
fe29d73a
...
...
@@ -32,19 +32,14 @@ rmdir /S /Q scientific-python
git
clone
https
://code.ill.fr/scientific
-software/scientific-python
.git
cd
scientific
-python
git
checkout
master
%PYTHON_EXE%
setup
.py
build
--netcdf
_prefix
=
"
%MDANSE_DEPENDENCIES_DIR%
\\NetCDF"
--netcdf
_dll
=
"
%MDANSE_DEPENDENCIES_DIR%
\\NetCDF"
%PYTHON_EXE%
setup
.py
build
--netcdf
_prefix
=
"
%MDANSE_DEPENDENCIES_DIR%
\\NetCDF"
--netcdf
_dll
=
"
%MDANSE_DEPENDENCIES_DIR%
\\NetCDF"
install
set
STATUS
=
%ERRORLEVEL%
rem Exit now if unable to build
if
%STATUS%
neq
0
(
echo
"Failed to build Scientific"
exit
%STATUS%
)
%PYTHON_EXE%
setup
.py
install
rem Exit now if unable to install
if
%STATUS%
neq
0
(
echo
"Failed to install Scientific"
exit
%STATUS%
)
rem Copy netcdf dependencies
copy
"
%MDANSE_DEPENDENCIES_DIR%
\\NetCDF\\netcdf.dll"
"
%MDANSE_TEMPORARY_INSTALLATION_DIR%
\\Lib\\site-packages\\Scientific\\"
copy
"
%MDANSE_DEPENDENCIES_DIR%
\\NetCDF\\netcdf.h"
"
%MDANSE_TEMPORARY_INSTALLATION_DIR%
\\include\\Scientific\\"
...
...
@@ -57,25 +52,20 @@ rmdir /S /Q mmtk
git
clone
https
://code.ill.fr/scientific
-software/mmtk
.git
cd
mmtk
git
checkout
master
%PYTHON_EXE%
setup
.py
build
%PYTHON_EXE%
setup
.py
build
install
set
STATUS
=
%ERRORLEVEL%
rem Exit now if unable to build
if
%STATUS%
neq
0
(
echo
"Failed to build MMTK"
exit
%STATUS%
)
%PYTHON_EXE%
setup
.py
install
rem Exit now if unable to install
if
%STATUS%
neq
0
(
echo
"Failed to install MMTK"
exit
%STATUS%
)
cd
..
rmdir
/S /Q
mmtk
rem Go back to the MDANSE source directory and build and install it
cd
"
%MDANSE_SOURCE_DIR%
"
%PYTHON_EXE%
setup
.py
build
%PYTHON_EXE%
setup
.py
build
install
set
STATUS
=
%ERRORLEVEL%
rem Exit now if unable to build
if
%STATUS%
neq
0
(
...
...
BuildServer/Windows/deploy.bat
View file @
fe29d73a
...
...
@@ -5,7 +5,7 @@ rem BUILD_TARGET
rem MDANSE_DEPENDENCIES_DIR
rem MDANSE_TEMPORARY_INSTALLATION_DIR
cd
"
%MDANSE_SOURCE_DIR%
"
cd
%MDANSE_SOURCE_DIR%
rem Set the path to python executable
set
PYTHON_EXE
=
%MDANSE_TEMPORARY_INSTALLATION_DIR%
\\python.exe
...
...
@@ -16,28 +16,12 @@ rem For the sake of code safety, this should be the same framework used to build
rem see http://p-nand-q.com/python/building-python-27-with-vs2010.html for more info
set
VS90COMNTOOLS
=
C
:\Users\\ci\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual
C
++
for
Python
\\9.0\\Common7\\Tools
%PYTHON_EXE%
setup
.py
build_api
set
STATUS
=
%ERRORLEVEL%
rem Exit now if unable to build
if
%STATUS%
neq
0
(
echo
"Failed to build MDANSE API"
exit
%STATUS%
)
%PYTHON_EXE%
setup
.py
build_help
%PYTHON_EXE%
setup
.py
build_api
build_help
install
set
STATUS
=
%ERRORLEVEL%
rem Exit now if unable to build
if
%STATUS%
neq
0
(
echo
"Failed to build MDANSE embedded documentation"
exit
%STATUS%
)
%PYTHON_EXE%
setup
.py
install
rem Exit now if unable to install
if
%STATUS%
neq
0
(
echo
"Failed to install MDANSE"
echo
"Failed to build MDANSE Documentation"
exit
%STATUS%
)
...
...
setup.py
View file @
fe29d73a
...
...
@@ -234,6 +234,7 @@ if sphinx:
for
builder
in
builders
:
self
.
builder_target_dir
=
os
.
path
.
join
(
self
.
build_dir
,
builder
)
sphinx
.
setup_command
.
BuildDoc
.
finalize_options
(
self
)
sphinx
.
setup_command
.
BuildDoc
.
run
(
self
)
sys
.
path
.
pop
(
0
)
...
...
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