* Some small fixups for improved Ubuntu 24.04-LTS and Matlab R2024a compatibility.
* Screen('DrawDots'): Only apply a margin to non-square dot types. Only round dots get
trimmed in the fragment shader, and so dot_type=4 was left with too much padding from
the vertex shader. Bug fix contributed by Alex Forrence @aforren1
* Python extensions built from this release onwards should also work with NumPy 2.x in
addition to NumPy 1.x. Changes contributed by Eric Larson.
- Update to version 3.0.19.11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-psychtoolbox?expand=0&rev=7
89 lines
3.0 KiB
RPMSpec
89 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-psychtoolbox
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-psychtoolbox
|
|
Version: 3.0.19.14
|
|
Release: 0
|
|
# Note: the license text mentions non-FOSS code, but that is not included in this source archive
|
|
License: AML AND BSD-2-Clause AND MIT AND X11 AND GPL-2.0-or-later AND LGPL-2.1-or-later
|
|
Summary: Pieces of Psychtoolbox-3 ported to CPython
|
|
URL: http://psychtoolbox.org
|
|
Group: Development/Languages/Python
|
|
Source: https://github.com/Psychtoolbox-3/Psychtoolbox-3/archive/%{version}.tar.gz#/psychtoolbox-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module numpy-devel}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(alsa)
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(glew)
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
BuildRequires: pkgconfig(portaudio-2.0)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
|
|
BuildRequires: gdb
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Psychtoolbox is a toolbox for psychophysics experiments.
|
|
The PTB core routines provide access to the display frame buffer and color
|
|
lookup table, reliably synchronize with the vertical screen retrace, support
|
|
sub-millisecond timing, expose raw OpenGL commands, support video playback
|
|
and capture as well as low-latency audio, and facilitate the collection of
|
|
observer responses. Ancillary routines support common needs like color
|
|
space transformations and the QUEST threshold seeking algorithm.
|
|
|
|
This module contains pieces of Psychtoolbox ported to CPython.
|
|
|
|
%prep
|
|
%setup -q -n Psychtoolbox-3-%{version}
|
|
chmod a-x PsychSourceGL/License.txt
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
$python -c 'import psychtoolbox'
|
|
$python -c 'from psychtoolbox import *'
|
|
}
|
|
|
|
%files %{python_files}
|
|
%doc README
|
|
%license PsychSourceGL/License.txt
|
|
%{python_sitearch}/psychtoolbox
|
|
%{python_sitearch}/psychtoolbox-*.dist-info
|
|
|
|
%changelog
|