On 8/23/17 9:02 AM, Ben Woods wrote: > +# Python 2.7-3.3 require enum34, unnecessary for Python 3.4+ > +.if ${PYTHON_REL} < 3400 > +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}enum34>0:devel/py-enum34 > +.endif
A heads-up just in case, as it has occurred numerous times in the past and is not immediately obvious ... When matching or modifying package dependencies in Python ports (conditional dependencies, updating version numbers), especially when making changes that are not reflected in the upstream sources, make sure to check and patch setup.py to make sure *everything* matches or is conditional there also. This includes when changing == to >= dependencies and similar. If they're not the same, setuptools will spit out a unsatisfied dependency errors at runtime. For conditional dependencies where some Python versions contain the module, the error will still be produced, as dependencies are checked only against third-party packages, not the standard library. In these cases it is still very much OK to depend on the PyPI (third-party) version (like enum and argparse), if one can't be bothered or does not want to patch the sources to compensate. ./koobs _______________________________________________ freebsd-python@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-python To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"