Package Details: python-pyxel 2.5.9-1

Git Clone URL: https://aur.archlinux.org/python-pyxel.git (read-only, click to copy)
Package Base: python-pyxel
Description: Retro game development environment
Upstream URL: https://github.com/kitao/pyxel
Keywords: gamedev graphics oldschool pixels
Licenses: MIT
Submitter: xyproto
Maintainer: nathanchere
Last Packager: nathanchere
Votes: 3
Popularity: 0.002608
First Submitted: 2018-08-02 12:30 (UTC)
Last Updated: 2025-10-24 23:24 (UTC)

Required by (0)

Sources (1)

Latest Comments

nathanchere commented on 2025-10-24 23:24 (UTC)

Upstream build changed quite a bit so it wasn't a simple version bump, should be working again now as of 2.5.9

Newk-B commented on 2025-10-21 10:17 (UTC)

   Compiling iana-time-zone v0.1.64
   Compiling xml-rs v0.8.27
   Compiling glow v0.16.0
error[E0412]: cannot find type `Platform` in this scope
  --> pyxel-platform/src/platform.rs:17:27
   |
17 | static mut PLATFORM: *mut Platform = null_mut();
   |                           ^^^^^^^^ not found in this scope

error[E0412]: cannot find type `Platform` in this scope
  --> pyxel-platform/src/platform.rs:19:35
   |
19 | pub fn platform() -> &'static mut Platform {
   |                                   ^^^^^^^^ not found in this scope

error[E0412]: cannot find type `Platform` in this scope
  --> pyxel-platform/src/platform.rs:32:36
   |
32 |         PLATFORM = transmute::<Box<Platform>, *mut Platform>(Box::new(platform));
   |                                    ^^^^^^^^ not found in this scope
   |
help: you might be missing a type parameter
   |
26 | pub fn init<Platform>() {
   |            ++++++++++

error[E0412]: cannot find type `Platform` in this scope
  --> pyxel-platform/src/platform.rs:32:52
   |
32 |         PLATFORM = transmute::<Box<Platform>, *mut Platform>(Box::new(platform));
   |                                                    ^^^^^^^^ not found in this scope
   |
help: you might be missing a type parameter
   |
26 | pub fn init<Platform>() {
   |            ++++++++++

error[E0433]: failed to resolve: use of undeclared type `Platform`
  --> pyxel-platform/src/platform.rs:27:24
   |
27 |     let mut platform = Platform::new();
   |                        ^^^^^^^^ use of undeclared type `Platform`

Some errors have detailed explanations: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `pyxel-platform` (lib) due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/usr/bin/python" PYTHON_SYS_EXECUTABLE="/usr/bin/python" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/newk/.cache/yay/python-pyxel/src/pyxel-2.5.8/rust/pyxel-wrapper/Cargo.toml" "--release" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python', '--compatibility', 'off'] returned non-zero exit status 1

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-pyxel-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-pyxel - exit status 4

Auerhuhn commented on 2024-12-28 12:04 (UTC)

Hi @nathanchere,

Upstream has migrated to a PEP-517 backend and to a mixed Python/Rust code base, so this PKGBUILD no longer works as is.

Suggested patch for the PKGBUILD: https://salsa.debian.org/-/snippets/763

You can apply the patch to the PKGBUILD like so:

curl -LO https://salsa.debian.org/-/snippets/763/raw/main/python-pyxel-2.2.8-PKGBUILD.patch
less python-pyxel-2.2.8-PKGBUILD.patch
patch -p1 < python-pyxel-2.2.8-PKGBUILD.patch

Regards
Claudia

alexf91 commented on 2019-08-14 18:05 (UTC) (edited on 2019-08-14 18:24 (UTC) by alexf91)

@dlezo I know, I realized this a few days ago. It's only used for the packager, but pkg_resources.load_entry_point checks all dependencies when a console script is executed.

I'm now patching setup.py so that pyinstaller is only checked for pyxelpackager. pyinstaller is now an optional dependency.

I'll raise the issue upstream.

dlezo commented on 2019-08-14 16:46 (UTC)

I just realized that pyinstaller is also needed. Without it pyxeleditor crashes on launch.

dlezo commented on 2019-08-06 19:13 (UTC)

Great. Thank you for your work!

alexf91 commented on 2019-08-05 17:54 (UTC)

@dlezo I have added sdl2_image (not the multilib version) as a dependency. Building works in a new x86_64 Arch installation.

dlezo commented on 2019-08-05 16:26 (UTC) (edited on 2019-08-05 16:28 (UTC) by dlezo)

I think python-pyxel 1.1.8-1 is missing this dependency: lib32-sdl2_image