debian/0000755000000000000000000000000012231471416007167 5ustar debian/source/0000755000000000000000000000000012231471416010467 5ustar debian/source/format0000644000000000000000000000001412231471416011675 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000010712231471416010216 0ustar version=3 http://sf.net/pyepl/ pyepl-([\d\.]*)\.tgz debian svn-upgrade debian/patches/0000755000000000000000000000000012231471416010616 5ustar debian/patches/series0000644000000000000000000000010712231471416012031 0ustar up_gcc4.7_freebsd deb_fonts deb_use_ode-config deb_path_to_resources debian/patches/deb_fonts0000644000000000000000000000066312231471416012511 0ustar diff --git a/code/display.py b/code/display.py index 3fdf4e1..da5ad57 100644 --- a/code/display.py +++ b/code/display.py @@ -917,7 +917,7 @@ class Font(MediaFile): return result # create the initial font defaults... -defaultFont = Font(os.path.join(pyepldir, "resources", "vera.ttf")) +defaultFont = Font("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf") defaultFontSize = 0.0625 defaultFontColor = Color("white") debian/patches/up_gcc4.7_freebsd0000644000000000000000000000211012231471416013716 0ustar --- pyepl-1.1.0.orig/code/hardware/rt/Makefile +++ pyepl-1.1.0/code/hardware/rt/Makefile @@ -8,7 +8,7 @@ # (LGPL). See the license.txt that came with this file. -PLATFORM = $(shell uname) +PLATFORM = $(shell uname | sed s/GNU\\/kFreeBSD/Linux/) INCLUDEPY=$(shell python -c "import distutils.sysconfig;print distutils.sysconfig.get_config_var('INCLUDEPY')") LIBPY=$(shell python -c "import distutils.sysconfig;print distutils.sysconfig.get_config_var('LIBPL')") only in patch2: unchanged: --- pyepl-1.1.0.orig/code/hardware/sound/Makefile +++ pyepl-1.1.0/code/hardware/sound/Makefile @@ -11,7 +11,7 @@ include ../../../Makefile.common -PLATFORM = $(shell uname) +PLATFORM = $(shell uname | sed s/GNU\\/kFreeBSD/Linux/) ifeq ($(PLATFORM), Linux) ######################################################## only in patch2: unchanged: --- pyepl-1.1.0.orig/code/hardware/eeg/pulse/parallel.h +++ pyepl-1.1.0/code/hardware/eeg/pulse/parallel.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include debian/patches/deb_use_ode-config0000644000000000000000000000107412231471416014243 0ustar diff --git a/code/hardware/vr/Makefile b/code/hardware/vr/Makefile index c08a539..8cb76cc 100644 --- a/code/hardware/vr/Makefile +++ b/code/hardware/vr/Makefile @@ -18,11 +18,14 @@ clean: ifeq ($(PLATFORM), Linux) +ODE_CFLAGS = $(shell ode-config --cflags) +ODE_LDFLAGS = $(shell ode-config --libs) + avatar.so: avatar.o - gcc -shared avatar.o -o avatar.so + gcc -shared avatar.o -o avatar.so $(ODE_LDFLAGS) avatar.o: avatar.c - gcc -c -fPIC -I$(INCLUDEPY) avatar.c + gcc -c -fPIC -I$(INCLUDEPY) $(ODE_CFLAGS) avatar.c avatar.c: avatar.pyx pyrexc avatar.pyx debian/patches/deb_path_to_resources0000644000000000000000000000155112231471416015105 0ustar --- a/code/hardware/graphics/__init__.py +++ b/code/hardware/graphics/__init__.py @@ -26,6 +26,7 @@ from font import LowFont import screensync pyepldir = os.path.abspath(os.path.dirname(pyepl.__file__)) +debresourcesdir = '/usr/share/python-pyepl' def initialize(**options): """ @@ -249,9 +250,9 @@ def startVideo(): pygame.mouse.set_visible(False) # set the icon and the splash image - pygame.display.set_icon(pygame.image.load(os.path.join(pyepldir, "resources", "icon.png"))) + pygame.display.set_icon(pygame.image.load(os.path.join(debresourcesdir, "icon.png"))) x, y = init_options["resolution"] - LowImage(os.path.join(pyepldir, "resources", "splash.png")).scale(x + 1, y + 1).show(0, 0) + LowImage(os.path.join(debresourcesdir, "splash.png")).scale(x + 1, y + 1).show(0, 0) pygame.display.flip() def stopVideo(): debian/changelog0000644000000000000000000001473312231471416011051 0ustar pyepl (1.1.0+git12-g365f8e3-2) unstable; urgency=low * debian/patches/deb_path_to_resources - load icon.png and splash.png from under /usr/share/pyepl (Thanks ctw for the report) -- Yaroslav Halchenko Tue, 22 Oct 2013 08:43:32 -0400 pyepl (1.1.0+git12-g365f8e3-1) unstable; urgency=low [ Yaroslav Halchenko] * This is not actually a new upstream release, but rather a clarification for 1.1.0-3 which absorbed lots of upstream changes without a boost of upstream revision * Move to 3.0(quilt) source format * ACK NMU by Michael -- thanks! * Added debian/gbp.conf to ease building using g-b-p [ Paolo Rotolo ] * Convert to dh_python2 (Closes: #616962) -- Yaroslav Halchenko Wed, 12 Jun 2013 09:18:34 -0400 pyepl (1.1.0-3.1) unstable; urgency=medium * Non-maintainer upload. * Fix gcc 4.7 build issue (closes: #692184). * Add kfreebsd support to makefiles (closes: #692101). -- Michael Gilbert Sat, 03 Nov 2012 04:14:46 +0000 pyepl (1.1.0-3) unstable; urgency=low * Absorbed some changes from upstream: - NF: Added show warnings on streams. - RF: Cleaning up sound code. - BF: Was not picking streams properly. - BF: Trying out separate streams. - BF: Added updated RtAudio files for potential recording bug fix. - BF/NF: If you generate a Showable surface yourself, do not unload it automatically. - DOC: Updated changelog with another update. - DOC: Updated changelog with the latest fix. - BF: Fixed simulatneous play/record bug. - NF: Added flush to sound recording. * Debian packaging: - Policy compliance boosted to 3.9.0: no changes seems to be due - Moved under NeuroDebian umbrella - Converting copyright to machine-readable DEP5 - Build-Depends on python-all-dev -- Yaroslav Halchenko Thu, 15 Jul 2010 14:08:55 -0400 pyepl (1.1.0-2) unstable; urgency=low * BF: use ode-config provided flags for avatar.so (Closes: #521755) * {misc:Depends} * Boosted standards version to 3.8.4: no changes -- Yaroslav Halchenko Fri, 07 May 2010 17:03:38 -0400 pyepl (1.1.0-1) unstable; urgency=low * New upstream release (gcc 4.3 compatible, so a relevant dpatch is dropped) * Debian packaging: - debhelper compatibility boosted to 5 - both upstream and Debian packaging are available within the same git repository (so VCS fields added). Previous histories (upstream, debian packaging) are imported and finally merged within the same tree - boosted standards revision (no changes are due) to 3.8.1 - stripped off dpatch and absorbed the patches within debian and upstream branches - README.Debian-source mentions the fact that we are building directly from git (upstream+debian) now - deprecating confusing autogeneration of debian/control - provided VCS fields within debian/control - adopted the patch from Matthias Klose , which should make pyepl friendlier to python2.6 and make use of python-provided makefile -- Yaroslav Halchenko Wed, 13 May 2009 15:54:48 -0400 pyepl (1.0.29-3.1) unstable; urgency=low * Non-maintainer upload. * Change libode0-dev build-dep to libode-dev. (Closes: #520732). * Use python-numpy in place of python-numeric-ext. (Closes: #478445). * Replace ttf-bitstream-vera with ttf-dejavu. (Closes: #528151). + Source was already patched to use DejavuSans.tff. -- Barry deFreese Wed, 13 May 2009 12:18:36 -0400 pyepl (1.0.29-3) unstable; urgency=low * Rebuild to move files to /usr/share/pyshared (Closes: #490519) * Boosted standards version to 3.8.0: - section python instead of science - homepage header field * Slight adjustment of the description * gcc-4.3 compatibility patch (fixed FTBS on up-to-date sid) -- Yaroslav Halchenko Sat, 12 Jul 2008 22:44:14 -0400 pyepl (1.0.29-2) unstable; urgency=low * Replaced dependenship on ttf-bitstream-vera. Now use ttf-dejavu (Closes: #461284). Thanks Daniel Baumann -- Yaroslav Halchenko Fri, 22 Feb 2008 10:37:23 -0500 pyepl (1.0.29-1.1) unstable; urgency=low * Non-maintainer upload. * debian/rules: Dropped bashim (==). (Closes: #459170) -- Marc 'HE' Brockschmidt Wed, 23 Jan 2008 19:38:18 +0100 pyepl (1.0.29-1) unstable; urgency=low * New upstream release (closes: #422824, FTBFS on i386 in sid) * Adjusted debian/patches/01_fix_makefiles.dpatch so code/hardware/eeg/Makefile has proper "clean" target -- Yaroslav Halchenko Wed, 09 May 2007 21:44:08 -0400 pyepl (1.0.28-2) UNRELEASED; urgency=low * Updated build-depends to comply to the latest Python policy. -- Michael Hanke Thu, 22 Feb 2007 19:43:25 +0100 pyepl (1.0.28-1) unstable; urgency=low * New upstream release -- Yaroslav Halchenko Tue, 30 Jan 2007 20:59:40 -0500 pyepl (1.0.27-1) unstable; urgency=low * New upstream release * 01_fix_makefiles patch had to be adjusted * policy boosted to 3.7.2.2 - no changes necessary -- Yaroslav Halchenko Thu, 14 Dec 2006 09:52:29 -0500 pyepl (1.0.26-1) unstable; urgency=low * New upstream release -- Yaroslav Halchenko Tue, 31 Oct 2006 21:00:47 -0500 pyepl (1.0.22-1) unstable; urgency=low * New upstream release * Depends on ttf-bitstream-vera (instead of recommends) -- Yaroslav Halchenko Wed, 11 Oct 2006 00:51:18 -0400 pyepl (1.0.21-1) unstable; urgency=low * New upstream release, which fixes memory leak bug -- Yaroslav Halchenko Sun, 24 Sep 2006 23:19:19 -0400 pyepl (1.0.20-1) unstable; urgency=low * New upstream release. * Removed obsolete -fPIC patch from 01_fix_makefiles.dpatch. -- Michael Hanke Thu, 21 Sep 2006 09:17:03 +0200 pyepl (1.0.19-1) unstable; urgency=low * New upstream release * Upstream includes now free TTF font thus repackaging now is not necessary and 02_free_ttf patch is no longer applied, rather pyepl now depends on ttf-bitsream-vera package -- Yaroslav Halchenko Mon, 4 Sep 2006 12:40:31 -0400 pyepl (1.0.14.dfsg.1-1) unstable; urgency=low * Initial release (closes: #356950) -- Yaroslav Halchenko Sun, 18 Jun 2006 11:25:12 -0400 debian/README.Debian0000644000000000000000000000042512231471416011231 0ustar python-pyepl for Debian ----------------------- So far not much to describe about specifics of Debian package of PyEpl, but there are quite a few items on my TODO list (please see TODO file). -- Yaroslav O. Halchenko , Tue, 14 Mar 2006 23:24:48 -0500 debian/copyright0000644000000000000000000000250512231471416011124 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: PyEPL Maintainer: NeuroDebian Team Source: http://pyepl.sourceforge.net/ Copyright: 2003-2005, Michael J. Kahana 2005-2009, Per B. Sederberg 2005-2007, Aaron Geller License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. Files: code/hardware/sound/Rt* Copyright: 2001-2009, Gary P. Scavone License: Expat Files: debian/* Copyright: 2006-2010, NeuroDebian Team License: Expat debian/rules0000755000000000000000000000500012231471416010242 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # # This file was originally written by Joey Hess and Craig Small. # build-arch and build-indep targets by Bill Allombert 2001 # Changes for python-pyepl by Yaroslav Halchenko # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS PYVERS := $(shell pyversions -vs) PYVER := $(shell pyversions -vd) include /usr/share/python/python.mk PYNAME=pyepl PYPACKAGE=python-$(PYNAME) BASE=$(CURDIR)/debian PY_COMMON_PATH=$(BASE)/$(PYPACKAGE)-common/usr/share/$(PYPACKAGE)/ CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: $(PYVERS:%=build-arch-python%) touch $@ build-arch-python%: python$* setup.py build_ext touch $@ build-indep: build-indep-stamp build-indep-stamp: # $(MAKE) -C code/documentation/ touch $@ clean: dh_testdir dh_testroot python setup.py clean rm -f build-arch-stamp build-arch-python* build-indep-stamp rm -rf build dh_clean pre-install: dh_testdir dh_testroot dh_clean -k dh_installdirs install: build pre-install install-indep install-arch install-indep: dh_installdirs -i mkdir -p $(PY_COMMON_PATH) cp -rp code/resources/*.png $(PY_COMMON_PATH) dh_install -i install-python%: python$* setup.py install --root $(BASE)/$(PYPACKAGE) --no-compile --install-layout=deb # remove unneeded and manually installed files rm -f $(BASE)/$(PYPACKAGE)/usr/lib/*/*/pyepl/license.txt rm -f $(BASE)/$(PYPACKAGE)/usr/lib/*/*/pyepl/resources/* python$* setup.py clean install-arch: pre-install $(PYVERS:%=install-python%) # Must not depend on anything. This is to be called by # binary-arch/binary-indep # in another 'make' thread. binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_link dh_strip dh_python2 dh_compress -X.py -X.pdf dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch debian/gbp.conf0000644000000000000000000000040412231471416010604 0ustar [DEFAULT] # the default branch for upstream sources: upstream-branch = master # the default branch for the debian patch: debian-branch = dist/proper/debian/sid # the default tag formats used: upstream-tag = upstream/%(version)s debian-tag = debian/%(version)s debian/description.in0000644000000000000000000000141612231471416012044 0ustar Description: module for coding psychology experiments in Python PyEPL is a stimuli delivery and response registration toolkit to be used for generating psychology (as well as neuroscience, marketing research, and other) experiments. . It provides - presentation: both visual and auditory stimuli - responses registration: both manual (keyboard/joystick) and sound (microphone) time-stamped - sync-pulsing: synchronizing your behavioral task with external acquisition hardware - flexibility of encoding various experiments due to the use of Python as a description language - fast execution of critical points due to the calls to linked compiled libraries . This toolbox is here to be an alternative for a widely used commercial product E'(E-Prime) debian/pycompat0000644000000000000000000000000012231471416010734 0ustar debian/TODO0000644000000000000000000000214112231471416007655 0ustar python-pyepl for Debian ----------------------- * Proper "clean"-up procedure Well... though it is not required (or in other words "could be avoided") -- it is good to have proper clean-up procedure and original Makefiles were missing clean target. Besides that setup.py is not tailored to provide proper cleaning. Temporary fix was applied but proper solution would be better * Check if python2.?-opengl is required in all cases since may be it is worth to wrap import in try clause to avoid getting: Traceback (most recent call last): File "./bugs.py", line 4, in ? from pyepl.locals import * File "/usr/lib/python2.4/site-packages/pyepl/__init__.py", line 15, in ? import hardware File "/usr/lib/python2.4/site-packages/pyepl/hardware/__init__.py", line 18, in ? import graphics File "/usr/lib/python2.4/site-packages/pyepl/hardware/graphics/__init__.py", line 16, in ? from OpenGL.GL import * ImportError: No module named OpenGL.GL for now I added strong dependency on python-opengl * Provide -doc package which should be shipped from different source upstream tarball debian/control0000644000000000000000000000516412231471416010600 0ustar Source: pyepl Section: python Priority: optional Maintainer: NeuroDebian Team Uploaders: Yaroslav Halchenko , Michael Hanke Build-Depends: debhelper (>= 5.0.37.2), libasound2-dev, libsndfile1-dev, libsamplerate0-dev, swig, libode-dev, python-all-dev (>=2.6.6-3~), jade, python-pyrex XS-Python-Version: >=2.3 Homepage: http://pyepl.sourceforge.net/ Vcs-Browser: http://git.debian.org/?p=pkg-exppsy/pyepl.git Vcs-Git: git://git.debian.org/git/pkg-exppsy/pyepl.git Standards-Version: 3.9.0 Package: python-pyepl Architecture: any Depends: ${misc:Depends}, ${python:Depends}, python-pyepl-common (= ${source:Version}), python-numpy, python-imaging, python-pygame, python-pyode, python-opengl, ttf-dejavu, ${shlibs:Depends} Conflicts: python2.3-pyepl, python2.4-pyepl Replaces: python2.3-pyepl, python2.4-pyepl Provides: ${python:Provides} Description: module for coding psychology experiments in Python PyEPL is a stimuli delivery and response registration toolkit to be used for generating psychology (as well as neuroscience, marketing research, and other) experiments. . It provides - presentation: both visual and auditory stimuli - responses registration: both manual (keyboard/joystick) and sound (microphone) time-stamped - sync-pulsing: synchronizing your behavioral task with external acquisition hardware - flexibility of encoding various experiments due to the use of Python as a description language - fast execution of critical points due to the calls to linked compiled libraries . This toolbox is here to be an alternative for a widely used commercial product E'(E-Prime) . This package provides PyEPL for supported versions of Python. Package: python-pyepl-common Architecture: all Depends: ${misc:Depends}, python Description: module for coding psychology experiments in Python PyEPL is a stimuli delivery and response registration toolkit to be used for generating psychology (as well as neuroscience, marketing research, and other) experiments. . It provides - presentation: both visual and auditory stimuli - responses registration: both manual (keyboard/joystick) and sound (microphone) time-stamped - sync-pulsing: synchronizing your behavioral task with external acquisition hardware - flexibility of encoding various experiments due to the use of Python as a description language - fast execution of critical points due to the calls to linked compiled libraries . This toolbox is here to be an alternative for a widely used commercial product E'(E-Prime) . This package provides common files such as images. debian/README.Debian-source0000644000000000000000000000046512231471416012533 0ustar python-pyepl for Debian Source Package -------------------------------------- Since 1.1.0 version upstream sources and debian packaging available within the same GIR repository. Debian packages built using git-buildpackage directly from git repository without reverting to downloading of upstream tarballs. debian/compat0000644000000000000000000000000212231471416010365 0ustar 5