When releasing a Python egg with support for both Python 2 and 3, can you specify dependencies that change depending on which version you're using? For example, if you use dnspython
for Python 2, there is a Python 3 version that is called dnspython3
.
Can you write your setuptools.setup()
function in such a way that your egg is useable to both versions if that is the only roadblock, i.e., if you have run 2to3
to ensure that the rest of your library is compatible with both versions.
I have looked through these documents and can't seem to find the answer this question: