Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
de6d1d4b
Commit
de6d1d4b
authored
Mar 30, 2020
by
Tiago Peixoto
Browse files
CI: fix debian build and add debian versioning
This fixes issue #642
parent
80d54833
Changes
2
Hide whitespace changes
Inline
Side-by-side
release/debian/Dockerfile
View file @
de6d1d4b
ARG
BASE
ARG
REF
FROM
$BASE as builder
ARG
BASE
RUN
apt-get update
RUN
apt-get
-y
dist-upgrade
RUN
apt-get
-y
install
git dpkg-dev dh-make autotools-dev autoconf python3-dev python3-scipy libboost-dev libboost-graph-dev libboost-iostreams-dev libboost-python-dev libboost-regex-dev libcgal-dev python3-cairo-dev libsparsehash-dev libcairomm-1.0-dev libffi-dev libexpat1-dev cdbs
RUN
apt-get
-y
install
git dpkg-dev dh-make autotools-dev autoconf python3-dev python3-scipy libboost-dev libboost-graph-dev libboost-iostreams-dev libboost-python-dev
libboost-context-dev libboost-coroutine-dev
libboost-regex-dev libcgal-dev python3-cairo-dev libsparsehash-dev libcairomm-1.0-dev libffi-dev libexpat1-dev cdbs
devscripts
RUN
git clone https://git.skewed.de/count0/graph-tool.git python3-graph-tool
WORKDIR
python3-graph-tool
ARG
REF
RUN
git reset
--hard
$REF
ADD
debian debian
RUN
cp
LICENSE debian/copyright
ADD
git2debchangelog.sh .
RUN
/bin/bash git2debchangelog.sh
>
debian/changelog
ARG
DEB_VERSION=1
RUN if
[
"
$DEB_VERSION
"
-gt
"1"
]
;
then
gt_version
=
`
git describe
--tags
|
grep
-o
'release-[^-]*'
|
sed
s/release-//
`
;
dch
-v
${
gt_version
}
-
${
DEB_VERSION
}
-m
'New package release'
;
dch
-r
--no-force-save-on-release
-m
'New package release'
;
fi
RUN
head
debian/changelog
RUN
./autogen.sh
RUN
dpkg-buildpackage
-us
-uc
-j2
ARG
NJOBS=2
RUN
NJOBS
=
$NJOBS
dpkg-buildpackage
-us
-uc
-j
$NJOBS
WORKDIR
..
RUN
mkdir
build
RUN
mv
python3-graph-tool
*
.deb build/
...
...
@@ -24,8 +37,9 @@ FROM $BASE
RUN
apt-get update
RUN
apt-get
-y
dist-upgrade
RUN
apt-get
-y
install
gdebi-core
RUN
apt-get
-y
install
python3-matplotlib gir1.2-gtk-3.0 python3-cairo
RUN
mkdir
build
COPY
--from=builder build/* build/
RUN
gdebi
-n
build/python3-graph-tool_
*
.deb
RUN
python3
-c
"from graph_tool.all import *; show_config(); g = random_graph(10, lambda: 5, directed=False)"
RUN
python3
-c
"from graph_tool.all import *; show_config(); g = random_graph(10, lambda: 5, directed=False)
; graph_draw(g, output='foo.png')
"
release/debian/debian/rules
View file @
de6d1d4b
...
...
@@ -6,7 +6,7 @@ include /usr/share/cdbs/1/class/autotools.mk
export SPARSEHASH_CFLAGS=-I/usr/include
export SPARSEHASH_LIBS=-L/usr/lib
export CXXFLAGS=-flto=
2
-ffunction-sections -fdata-sections
export LDFLAGS=-
Wl,--gc-sections
export CXXFLAGS=-flto=
${NJOBS}
-ffunction-sections -fdata-sections
export LDFLAGS=-
flto=${NJOBS}
DEB_CONFIGURE_EXTRA_FLAGS += --enable-openmp --docdir=/usr/share/doc/python3-graph-tool PYTHON=python3
--with-sparsehash-prefix=google
DEB_CONFIGURE_EXTRA_FLAGS += --enable-openmp --docdir=/usr/share/doc/python3-graph-tool PYTHON=python3 --with-sparsehash-prefix=google
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