Skip to content

Python3 Migration #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michaelchin opened this issue Nov 6, 2019 · 9 comments
Open

Python3 Migration #1

michaelchin opened this issue Nov 6, 2019 · 9 comments
Assignees

Comments

@michaelchin
Copy link
Contributor

The python2 will retire in less than two months. We should start thinking of migrating our code to python3. I have created a branch python3-migration for the task. The command "2to3 --output-dir=python3-version/mycode -W -n python2-version/mycode" can be used to convert the code.

@Swanson-Hysell
Copy link

Swanson-Hysell commented Nov 6, 2019

Can pygplates itself be run using Python 3 now? Seeking to utilize pygplates is the only remaining reason I have for developing notebooks in Python 2. We usually have all our notebooks for a project be Python 3 and keep one Python 2 notebook for running pygplates.

Perhaps that is the whole point of this issue, but I am wondering if it is already possible and this issue is focused on the tutorials rather than pygplates itself.

@jcannon-gplates
Copy link
Contributor

The next release will support Python 3, and will be called pyGPlates 1.0. It currently passes all tests on Ubuntu (Python 3), but we need to set up and make builds for Mac/Windows.

@Swanson-Hysell
Copy link

Great to hear! Thanks for all your work on it. We have enjoyed putting it to use.

@michaelchin michaelchin self-assigned this Nov 7, 2019
@datuadiatma
Copy link

Hello,

Is there a recommended method to install Py3 version of pygplates on a windows (64bit) machine? Do I need to use docker? It seems that the installers available on sourceforge are still the old ones (py27).

Thanks

@jcannon-gplates
Copy link
Contributor

The next pyGPlates release (1.0, this year) will support Python 3. And we are aiming to support PIP (so the official installation procedure will be pip install pygplates).

@datuadiatma
Copy link

Great to hear, thanks!

@Swanson-Hysell
Copy link

Swanson-Hysell commented May 20, 2021

Had there been progress on supporting pip installation? I was just trying to build a reproducible binder (https://mybinder.org) for the code for a recent paper and am unable to put pygplates in a requirement.txt without it being available via pip. Thanks.

@jcannon-gplates
Copy link
Contributor

Actually we'll probably go with Conda (at least initially). With pyGPlates being a C extension (and also depending on other C libraries) it is proving difficult to produce a pip package at this stage. Conda is more ideally suited to C extensions (whereas Pip does not really have good support for installing the C dependency libraries used by pyGPlates).

@Swanson-Hysell
Copy link

Good deal. Being able to Conda install would be great. Having this type of installation pathway will make it easier to have students use pyGPlates in the context of courses and research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants