asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
643 stars 55 forks source link

Building packages from AUR using python provided by asdf-vm fails #180

Closed ferretwithaberet closed 5 months ago

ferretwithaberet commented 5 months ago

Provide environment information

OS:
Linux FX505DT 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64 GNU/Linux

SHELL:
GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

BASH VERSION:
5.2.26(1)-release

ASDF VERSION:
v0.13.1-0586b37

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/ferret/.asdf
ASDF_DIR=/home/ferret/.asdf
ASDF_CONFIG_FILE=/home/ferret/.asdfrc

ASDF INSTALLED PLUGINS:
bun                          https://github.com/cometkim/asdf-bun.git main e503786
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master c5b7c40
python                       https://github.com/danhper/asdf-python.git master 5e277e2

To Reproduce

Describe the Bug

tlpui build fails.

==> Starting build()...
/home/ferret/.asdf/installs/python/3.12.1/bin/python: No module named build
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: tlpui-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
tlpui - exit status 4

To be honest, I do not know if this is asdf related, if I did not configure asdf properly or if this is an tlpui bug.

Expected Behaviour

tlpui build should not fail.

ferretwithaberet commented 5 months ago

Seems like I needed to set python to system version because otherwise it would not see the dependencies installed through pacman. This can be done with the command asdf global python system.