Summary: | >=dev-lang/python-2.7 should block dev-python/argparse | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Denilson Sá Maia <denilsonsa> |
Component: | [OLD] Unspecified | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | aklhfex, bugs+gentoo, flow, jwbraun, ms+gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://docs.python.org/library/argparse.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Denilson Sá Maia
2011-10-13 20:57:05 UTC
Progress Overlay contains virtual/python-argparse, which depends on dev-python/argparse only when Python ABIs matching 2.4, 2.5, 2.6 or 3.1 Python ABIs patterns are enabled. Just remember that Python versions are slotted, so a user might have both 2.6 and 2.7 installed (for instance), which means argparse would have to be installed only for 2.6. Or maybe this is too complex, and just a simple solution that works for the most common case (and a "elog" message explaining it). Since we don't have the nifty abi use flags that Afrever's overlay utilizes, that isn't an option at this point. We could simply not install the files if PYTHON_ABI = 2.7. RESTRICT_PYTHON_ABIS=2.7 could work for that, but needs testing. Specifically, if that is the only abi in USE_PYTHON, I am not sure what will happen. Any progress on identifying whether Python 2.7 is installed or not? I run into this probelm when gentoolkit pulls in dev-python/argparse, even though I have Python 2.7.3 installed. It would nice to find a way to fix this that argparse is only pulled in if the version of Python used doesn't have argparse. According to the pypi argparse page: "As of Python >= 2.7 and >= 3.2, the argparse module is maintained within the Python standard library". I have committed a virtual/python-argparse today, so we can start fixing packages to use it already. When packages are migrated, the argparse shouldn't be naturally depcleaned from systems. There's also a new dev-python/argparse which is built only for those Python versions which don't have argparse built-in. It is temporarily masked however since it throws out an error if no such Python versions are installed. I will unmask it when the virtual lies around long enough for people to update the ebuilds. Considering the virtual initiative, I think we can close this bug. Hope you don't mind. |