data-oriented-pyglet icon indicating copy to clipboard operation
data-oriented-pyglet copied to clipboard

Make python 3 compatible

Open Permafacture opened this issue 8 years ago • 5 comments

Make compatible with python 2 and 3 using __future__ and six if necessary.

Permafacture avatar Oct 02 '16 00:10 Permafacture

all the code are in python 2?

chemsed avatar Oct 02 '16 04:10 chemsed

I have only run it with python 2. I don't think there is much if any python 2 specific code in it. One thing I don't know is if the same requirements.txt would work for both.

Permafacture avatar Oct 02 '16 06:10 Permafacture

Hello, I'm running into some issue importing numpy_ecs when I execute polygons.py. Do you have a clue how can I solve that? I think I can find my solution if you explain to me the purpose of setup.py and requirements.txt.

chemsed avatar Oct 14 '16 15:10 chemsed

In the same directory as setup.py, do

pip install -r requirements.txt
pip install -e .

The e flag means install it in developer mode, so changes you make are available next time you import it. Otherwise, pip just copies the files to it's site-packages directory.

Permafacture avatar Oct 15 '16 02:10 Permafacture

There is no requirements.txt. I just needed to pip install numpy and pyglet.

hemebond avatar Oct 06 '18 00:10 hemebond