----- Original Message -----
2014-06-09 12:44 GMT+02:00 Bohuslav Kabrda < bkabrda(a)redhat.com
> :
> Another viable approach could be (not tested) replacing contents
of
> astropy.extern.six with single line "from six import *". That'd
unbundle
> six
> and wouldn't break depending libraries.
No, it doesn't work, python-2.x does relative imports in
preference to
absolute imports, see the last point here
in fact, the directory approach doesn't work for me either with
six.py,
import six tries to import itself
Right. You could try using imp module to import "six" from each of
"site.getsitepackages" (although you'd have to do this by importlib for
python3, where "imp" is deprecated). After having the module object imported,
you could bind its variables to globals of astropy.extern.six.
Slavek
> Slavek
> --
> packaging mailing list
> packaging(a)lists.fedoraproject.org
>
https://admin.fedoraproject.org/mailman/listinfo/packaging
--
packaging mailing list
packaging(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging --
Regards,
Bohuslav "Slavek" Kabrda.