Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added debian directory for building from source #18

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
tvb-gdist for Debian

External Library Geodesic
=========================

The `gdist` module is a Cython interface to a C++ library
(http://code.google.com/p/geodesic/) for computing
geodesic distance which is the length of shortest line between two
vertices on a triangulated mesh in three dimensions, such that the line
lies on the surface.

The algorithm is due Mitchell, Mount and Papadimitriou, 1987; the implementation
is due to Danil Kirsanov and the Cython interface to Gaurav Malhotra and
Stuart Knock.


Original library (published under MIT license):
http://code.google.com/p/geodesic/

We added a python wrapped and made small fixes to the original library, to make it compatible with cython.

To install this, either run `pip install gdist` or download
sources from Github and run `python setup.py install` in current folder.

Basic test could be::

python
import gdist


Python 2.7, Cython, and a C++ compiler are required.

Debian package
==============

In order to produce a Debian package, assuming you have the requisite tools
installed (`apt-get install devscripts python-all-dev python-stdeb`)::

cd debian
debuild -us -uc
cd ../../


and you should find a suitable deb file for your system.

-- umar haruna abdullahi <[email protected]> Sun, 01 Jul 2018 12:24:32 +0100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the "Debian section" at the end here, and your name from Readme files.

5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tvb-gdist (1.5.6-1) unstable; urgency=medium

* Initial release. Closes: #896927

-- umar haruna abdullahi <[email protected]> Sun, 01 Jul 2018 12:24:32 +0100
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
24 changes: 24 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Source: tvb-gdist
Maintainer: the virtual brain <[email protected]>
Uploaders: umar haruna abdullahi <[email protected]>
Section: python
Priority: optional
Build-Depends: cython,
debhelper (>=11),
dh-python,
python-all,
python-numpy,
python-scipy,
python-setuptools
Standards-Version: 4.1.4.2
Vcs-Browser: https://github.com/the-virtual-brain/tvb-geodesic
Vcs-Git: https://github.com/the-virtual-brain/tvb-geodesic.git
Homepage: http://www.thevirtualbrain.org

Package: tvb-gdist
Architecture: any
Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
Description: gdist module is a Cython interface
computing geodesic distance which is the length of shortest
line between two vertices on a triangulated mesh in three
dimensions, such that the line lies on the surface
31 changes: 31 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: tvb-library
Upstream-Contact: TVB TEAM <[email protected]>
Source: https://github.com/the-virtual-brain/tvb-library
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again tvb-library in the URL. It should be the current package!!!!
Please check all similar URLs


Files: *
Copyright: 2012-2017 Baycrest Centre for Geriatric Care ("Baycrest") and others
License: GPL-3.0+

Files: debian/*
Copyright: 2018 Baycrest Centre for Geriatric Care ("Baycrest") and others
License: GPL-3.0+

License: GPL-3.0+
This program is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this
program. If not, see <http://www.gnu.org/licenses/>.
.
When using The Virtual Brain for scientific publications, please cite it as follows:
Paula Sanz Leon, Stuart A. Knock, M. Marmaduke Woodman, Lia Domide,
Jochen Mersmann, Anthony R. McIntosh, Viktor Jirsa (2013)
The Virtual Brain: a simulator of primate brain network dynamics.
Frontiers in Neuroinformatics (7:10. doi: 10.3389/fninf.2013.00010)
.
On Debian systems, the complete text of the GNU General Public License
Version 3 can be found in `/usr/share/common-licenses/GPL-3'.
11 changes: 11 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME = tvb-gdist
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1

include /usr/share/dpkg/buildflags.mk

%:
dh $@ --with python2 --buildsystem=pybuild
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
1 change: 1 addition & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tvb-gdist source: debian-watch-does-not-check-gpg-signature
2 changes: 2 additions & 0 deletions debian/tvb-gdist.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tvb-gdist: no-upstream-changelog
tvb-gdist: dependency-on-python-version-marked-for-end-of-life
3 changes: 3 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=3
opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
https://pypi.debian.net/tvb-gdist/tvb-gdist-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))