Package Details: python-ufl 2022.3.0-1

Git Clone URL: https://aur.archlinux.org/python-ufl.git (read-only, click to copy)
Package Base: python-ufl
Description: Unified form language (stable).
Upstream URL: https://github.com/FEniCS/ufl-legacy
Licenses: LGPL3
Groups: fenics
Conflicts: python-ufl-git
Submitter: sigvald
Maintainer: entshuld (Polly)
Last Packager: entshuld
Votes: 4
Popularity: 0.000000
First Submitted: 2018-01-08 13:53 (UTC)
Last Updated: 2024-03-17 09:52 (UTC)

Latest Comments

carlosal1015 commented on 2024-04-06 01:10 (UTC)

This fix the PKGBUILD, add missing makedependencies and fix cd'ing directory.

diff --git a/PKGBUILD b/PKGBUILD
index 4039064..6fb9347 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,26 +14,24 @@ groups=('fenics')
 conflicts=('python-ufl-git')
 depends=('python-numpy')
 options=(!emptydirs)
-makedepends=('python-setuptools')
-source=(${_base}-${pkgver}.tar.gz::"${url}/archive/refs/tags/${pkgver}.tar.gz")
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+source=(${_base}-legacy-${pkgver}.tar.gz::"${url}/archive/refs/tags/${pkgver}.tar.gz")
 sha256sums=('2d0f4c88fe151d631e1d389faf61f58bbbe649fd08106e756fd5d6c53213660a')

-_basedir=${startdir}/src/${_base}-legacy-${pkgver}
-
 prepare (){
-    cd ${_basedir}
+    cd ${_base}-legacy-${pkgver}
     sed -i 's/README.rst/README.md/g' setup.cfg
 }

 build() {
-       cd ${_basedir}
+       cd ${_base}-legacy-${pkgver}
        python -m build --wheel --skip-dependency-check --no-isolation
 }

 package() {
-       cd ${_basedir}
+       cd ${_base}-legacy-${pkgver}
        PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
-    install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+        install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }

 # vim: shiftwidth=2 softtabstop=2 tabstop=2 noexpandtab

carlosal1015 commented on 2024-04-04 03:22 (UTC)

In my case: startdir is /home/aur/python-ufl/PKGBUILD: and try to go cd: /home/aur/python-ufl/src/ufl-legacy-2022.3.0: No such file or directory.

carlosal1015 commented on 2024-03-29 14:01 (UTC)

==> Retrieving sources...
  -> Downloading ufl-2022.3.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  306k    0  306k    0     0   902k      0 --:--:-- --:--:-- --:--:--  902k
==> Validating source files with sha256sums...
    ufl-2022.3.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting ufl-2022.3.0.tar.gz with bsdtar
/builds/dune-archiso/repository/dune-archiso-repository-core/python-ufl/PKGBUILD: line 24: cd: /builds/dune-archiso/repository/dune-archiso-repository-core/python-ufl/src/ufl-legacy-2022.3.0: No such file or directory
==> Starting prepare()...
==> ERROR: A failure occurred in prepare().
    Aborting...

sigvald commented on 2019-04-11 16:01 (UTC)

Thank you and sorry for the late response @cpuheater. python-setuptools now added to makedepends.

cpuheater commented on 2019-02-12 11:42 (UTC)

Please add makedepends=('python-setuptools') to the PKGBUILD.

Otherwise the build fails with:

Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'