Package Details: python-pulp 2.9.0-1

Git Clone URL: https://aur.archlinux.org/python-pulp.git (read-only, click to copy)
Package Base: python-pulp
Description: A Linear Programming modeler written in Python
Upstream URL: https://github.com/coin-or/pulp
Licenses: BSD
Submitter: jleclanche
Maintainer: mschu
Last Packager: mschu
Votes: 4
Popularity: 0.000000
First Submitted: 2014-04-24 04:31 (UTC)
Last Updated: 2024-07-12 11:18 (UTC)

Latest Comments

spider-mario commented on 2024-05-13 18:12 (UTC)

Thank you for your comment but as was discussed just prior, per the wiki page that you allude to, that method cannot be used with this project, which doesn’t have a pyproject.toml.

dreieck commented on 2024-04-28 10:45 (UTC)

Please move away from calling setup.py directly and instead use python -m build and python -m installer (together with the appropriate makedepends), as documented in the Arch Linux wiki for python packages:

==> Starting package()...
running install
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running install_lib

Regards and thanks for maintaining!

spider-mario commented on 2024-03-05 23:45 (UTC) (edited on 2024-03-06 07:55 (UTC) by spider-mario)

From PEP 517:

If the pyproject.toml file is absent, or the build-backend key is missing, the source tree is not using this specification, and tools should revert to the legacy behaviour of running setup.py (either directly, or by implicitly invoking the setuptools.build_meta:__legacy__ backend).

Likewise, from the Arch wiki page you linked to:

If no pyproject.toml can be found or it fails to contain a [build-system] table, it means the project is using the old legacy format, which uses a setup.py file which invokes setuptools or distutils.

MarsSeed commented on 2024-03-05 15:00 (UTC)

pyproject.toml is not needed for PEP 517 installation, but executing setup.py is deprecated and should not be done.

spider-mario commented on 2023-12-24 09:59 (UTC)

Thanks for pointing that out about amply – the dependency became optional in 2.5.0 but I missed that at the time.

It doesn’t seem like that guidance about PEP 517 applies here since there is no pyproject.toml.

MarsSeed commented on 2023-12-21 17:01 (UTC)

Please kindly modernize the build procedure (PEP 517).

Also, as per upstream, python-amply should only be an optdepend, along with python-orloge and python-pytups (the latter two are not yet in Arch/AUR repos).

flying-sheep commented on 2021-12-18 15:17 (UTC)

Working PKGBUILD:

# Maintainer: spider-mario <spidermario@free.fr>
# Contributor: Jerome Leclanche <jerome@leclan.ch>

_pkgname=PuLP
pkgname=python-pulp
pkgver=2.5.1
pkgrel=1
pkgdesc="A Linear Programming modeler written in Python"
arch=("any")
license=("BSD")
url="https://github.com/coin-or/pulp"
depends=('python-amply')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
b2sums=('ace8e52eac3d911039ea9c81417de615c1cb7b2ef136c206bdc2fc01657d67379168617148718156314b1d45f27cc099e226a08e561b297b7d2991b5effe9735')

build() {
    cd "$srcdir/$_pkgname-$pkgver"
    python setup.py build
}

package() {
    cd "$srcdir/$_pkgname-$pkgver"
    python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
    install --directory "$pkgdir"/usr/share/licenses/$pkgname/
    install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/
}

oprypin commented on 2014-12-03 14:58 (UTC)

The maintainer of this package stepped down for some reason. But it's still useful and up-to-date. I'm not going to pick it up for now, because it doesn't look like this library will be updated anytime soon. If a maintainer is required to keep this package alive, please contact me.

theswitch commented on 2014-10-24 04:37 (UTC)

Maybe you should add glpk, etc. as (optional) dependencies?