perey / pegl

A Python 3 wrapper for the EGL library.
GNU General Public License v3.0
14 stars 5 forks source link

Native library import does not support linux3 #1

Closed red-hara closed 8 years ago

red-hara commented 8 years ago

Shouldn't line 46 in native.py be set to if sys.platform == 'linux': or if sys.platfom == 'linux2' or sys.platform == 'linux3'? That should enable usage of pegl on modern kernels. Or, maybe, there is no support for 3rd kernel? Thank you in advance.

perey commented 8 years ago

The Linux platform test is currently if sys.platform.startswith('linux'):, which should work correctly regardless of whether Python reports the platform as linux, linux2 or linux3.

If it's not working for you, please let me know what error message you get, and if possible, what result running the following code gives you:

import sys
print(sys.platform)

Thank you!

red-hara commented 8 years ago

import pegl pegl.__version__ '0.1a3~1.4' import sys print(sys.version) 3.5.1 (default, Mar 3 2016, 09:29:07) [GCC 5.3.0] I suppose I was using an old version, distributed via pip. I'll download newer version and will inform you at once.

perey commented 8 years ago

Ahh, yes. It makes sense now. Sorry, there hasn't been a new release on PyPI for a while.

red-hara commented 8 years ago

Thank you, this part is working properly. Issue closed.