tech-pkg archive

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

Re: py-setuptools as a DEPENDS?



Le 2018-08-29 12:03, Adam a écrit :
According to devel/py-setuptools/DESCR, this tool aims at building and distributing python package.

What about the following?
Index: egg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python/egg.mk,v
retrieving revision 1.27
diff -u -r1.27 egg.mk
--- egg.mk      8 Feb 2017 12:09:30 -0000       1.27
+++ egg.mk      29 Aug 2018 08:02:55 -0000
@@ -50,7 +50,7 @@
ensurepip:
       ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m ensurepip --user
.else
-DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.8:../../devel/py-setuptools +BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.8:../../devel/py-setuptools
.endif

INSTALLATION_DIRS+=    ${PYSITELIB}

I thought about this (clever me ;)), but apparently some packages
require setuptools to run.

o_O

One need to go through the packages and figure out which ones.

No idea how to do that... Extract each ^py-* and grep something with setuptools in setup.py...?

Or... just switch to BUILD_DEPENDS and amend later.

1) An idea about how many packages could be affected?
2) Could we override BUILD_DEPENDS by DEPENDS for packages that need py-setuptools as a running dependency?

Kind regards,
Adam

Fred


Home | Main Index | Thread Index | Old Index