Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I requesting for help with writing defenition for python retro game
- engine[1].
- There are steps according to manual to build this engine[2]:
- 1. Get sources with `git clone https://github.com/kitao/pyxel'
- 2. "cd" to this dir
- 3. Invoke `guix environment --pure --ad-hoc gcc make python python-pip
- coreutils findutils sdl2 sdl2-image'
- 4. Appnend this to in file pyxel/core/Makefile on line 50
- `-I/gnu/store/flvzd76nb8xzbp1sf5ckkvpwhspz9fqx-sdl-union-1.2.15/include/SDL2'
- 5. Invoke `make -C pyxel/core clean all'
- 6. Invoke `pip3 install .' to install this package
- And I got fully functional (according to examples) package in my system,
- but when I was tried to write defenition:
- ┌────
- │ (define-public python-pyxel
- │ (package
- │ (name "python-pyxel")
- │ (version "1.4.3")
- │ (source
- │ (origin
- │ (method url-fetch)
- │ (uri "file:///home/lil/src/ring/pyxel" ;; this is version with modified Makefile
- │ ;; (pypi-uri "pyxel" version) <- this is original content from $ guix import pypi pyxel
- │ )
- │ (sha256
- │ (base32
- │ "1gxvagmj37gs871bh77xafm5jyiaw1hvs76wb97w96kf3g8abhkz"))))
- │ (build-system python-build-system)
- │ (inputs
- │ `(("gifsicle" ,gifsicle)
- │ ("sdl2" ,(sdl-union (list sdl2 sdl2-image)))))
- │ (home-page "https://github.com/kitao/pyxel")
- │ (synopsis "A retro game engine for Python")
- │ (description "A retro game engine for Python")
- │ (license license:expat)))
- └────
- I was stacked with that error[3]
- ┌────
- │ starting phase `build'
- │ running "python setup.py" with command "build" and parameters ()
- │ Traceback (most recent call last):
- │ File "<string>", line 1, in <module>
- │ File "setup.py", line 2, in <module>
- │ from pyxel import VERSION
- │ File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/__init__.py", line 10, in <module>
- │ from . import core # type: ignore
- │ File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__.py", line 42, in <module>
- │ _lib = _load_library()
- │ File "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__.py", line 39, in _load_library
- │ return cdll.LoadLibrary(lib_path)
- │ File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary
- │ return self._dlltype(name)
- │ File "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/ctypes/__init__.py", line 373, in __init__
- │ self._handle = _dlopen(self._name, mode)
- │ OSError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
- │ command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" failed with status 1
- │ builder for `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' failed with exit code 1
- │ build of /gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv failed
- │ View build log at '/var/log/guix/drvs/2v/3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv.bz2'.
- │ guix build: error: build of `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' failed
- └────
- As far as I can understand, firstly guix should build C++ dependencies
- and /then/ install python package. Isn't it? But I don't know how to do
- this.
- Footnotes
- ─────────
- [1] <https://github.com/kitao/pyxel> Actually is C++ and Python engine
- [2]
- <https://github.com/kitao/pyxel#execute-the-following-command-in-any-folder>
- [3] For full error see <https://pastebin.com/d18Wrrq4>
Advertisement
RAW Paste Data
Copied
Advertisement