dendrograms / astrodendro

Generate a dendrogram from a dataset
https://dendrograms.readthedocs.io/
Other
37 stars 38 forks source link

Use six.py instead of 2to3 #79

Closed astrofrog closed 10 years ago

astrofrog commented 10 years ago

With this change, we should no longer need 2to3

astrofrog commented 10 years ago

@ChrisBeaumont - if the tests pass, ok to merge? The six.py module is pretty standard, a lot of other projects are using this to write Python 2 and 3-compatible code.

ChrisBeaumont commented 10 years ago

I haven't used 2to3 or six.py, so I'm fine with whatever you think is best

astrofrog commented 10 years ago

Ok - using six is preferable if possible because one can import the source directly into Python 2 or 3, whereas at the moment one needs to install the code in Python 3 for it to work (importing from the source directory won't work because 2to3 only converts the code when building). Also, currently if you install the package into Python 2 then 3 then 2to3 doesn't get run unless you explicitly remove the build directory between the builds.