pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

distutils.mk and egg.mk (was: Re: Import py-ana version 0.05 (0.5) from pypi)



Hello Pierre,
Just a small possible cleanup regarding py-ana, py-mulpyplexer,
py-cooldict and py-idalink.

Pierre Pronchery writes:
> [...]
> Log Message:
> Import py-ana version 0.05 (0.5) from pypi
> [...]
> diff --git a/py-ana/Makefile b/py-ana/Makefile
> new file mode 100644
> index 0000000000..ae927d459c
> --- /dev/null
> +++ b/py-ana/Makefile
> @@ -0,0 +1,15 @@
> +# $NetBSD$
> +
> +DISTNAME=	ana-0.05
> +PKGNAME=	${PYPKGPREFIX}-ana-0.5
> +CATEGORIES=	math
> +MASTER_SITES=	${MASTER_SITE_PYPI:=a/ana/}
> +
> +MAINTAINER=	khorben%defora.org@localhost
> +HOMEPAGE=	https://pypi.python.org/pypi/ana/
> +COMMENT=	ana
> +
> +PYTHON_VERSIONS_ACCEPTED=	27
> +
> [...]
> +.include "../../lang/python/egg.mk"
> +.include "../../mk/bsd.pkg.mk"
> [...]
> +++ b/py-ana/patches/patch-setup.py
> @@ -0,0 +1,10 @@
> +$NetBSD$
> +
> +Fix error "Unknown distribution option: 'install_requires'"
> +
> +--- setup.py.orig	2018-03-27 23:17:53.000000000 +0000
> ++++ setup.py
> +@@ -1,2 +1,2 @@
> +-from distutils.core import setup
> ++from setuptools import setup
> + setup(name='ana', version='0.05', install_requires=['future'], packages=['ana'])

I think that you can just `.include "../../lang/python/distutils.mk"'
instead of egg.mk, so patches/patch-setup.py will be no longer
needed.

If I'm not missing something this will also automatically define
EGG_NAME properly so that they will appear in the PLIST
(WARNING: I've only tested with py-ana though! :)).


Thank you!


Home | Main Index | Thread Index | Old Index