PyTox icon indicating copy to clipboard operation
PyTox copied to clipboard

Can't build on mingw Windows XP

Open Tcll opened this issue 10 years ago • 15 comments

1: delete "import setuptools" from setup.py (I can't get setuptools to install anyways)

... building 'tox' extension error: unable to find vcvarsall.bat

running Py27 on WinXP x64 SP2

why is the extension not built already??

Tcll avatar Aug 21 '14 04:08 Tcll

Hi, thanks for reporting. I've removed the import of 'setuptools'. Can you try 'python setup.py build -c mingw32' like what this post mentioned?

aitjcize avatar Aug 21 '14 04:08 aitjcize

thanks for responding quick :) (seriously, alot of developers I talk to take a month or more to respond, if at all) D:

anyways, here's what I get: http://lh6.ggpht.com/-SltbusvJDF8/U_WEtGIAvnI/AAAAAAAAHLk/GBbc1s28uFk/s664/pytox_error.PNG I might need to download the compiler >_>

in any case, if you have an x64 system, a build on yours should logically work on mine :P unless there's issues I'm not seeing... >.>

would be better if it didn't have to be built at all, but that's a completely different level :P lol

Tcll avatar Aug 21 '14 05:08 Tcll

Hi, you need to install mingw-gcc on your system to compile it. I'm sorry I don't have a windows machine, that is why there is no prebuilt pacakge.

aitjcize avatar Aug 21 '14 09:08 aitjcize

ah ok I can compile both builds for you once I get my secondary running :) (I can only do x64 (amd64) currently)

just so you know, I don't use anything above WinXP. (Microsoft wants to spy on you and control you) so if my builds have issues with any newer OS, tell them they'll have to build. (I strongly doubt this, but we still can't rule it out)

Tcll avatar Aug 21 '14 14:08 Tcll

Thanks :) Let me know if you can build PyTox with mingw

aitjcize avatar Aug 21 '14 14:08 aitjcize

btw, if this builds to a DLL, I can't use it... check this out: http://code.google.com/p/pygpu/issues/detail?id=3 (it's clearly installed, but doesn't work)

Tcll avatar Aug 21 '14 15:08 Tcll

Does this problem still persist?

aitjcize avatar Sep 14 '14 09:09 aitjcize

kinda... I can't seem to get mingw to install properly with XP x64 like 5 out of the 6 packages I have install, but your setup can't seem to find them... the 6th won't install for whatever reason, so I've kinda said screw it for a while...

I've installed Cygwin and havn't tested that yet (cygwin is reported to be better than mingw while still doing the same stuff) I havn't tested because I kinda flipped the table and moved onto another project for the time :P

why can't the code just be ported to python, so it doesn't have to be built :)

Tcll avatar Sep 14 '14 13:09 Tcll

I found this script to be very helpful when I had to configure a MingW environment to create Windows builds for a project. It downloads binary packages and their dependencies from the OpenSUSE build service.

alexandervdm avatar Sep 16 '14 11:09 alexandervdm

alright, I will try this out when I'm ready ;)

tbh, I only downloaded this because it was an interesting project, I'm too stockpiled with other projects to really do anything with it atm. XD

still, a python version of tox is pretty awesome :D

may I request a pure python port of the code for the future :) (meaning you won't have to build anything)

Tcll avatar Sep 16 '14 12:09 Tcll

Hi Tcll,

can you open a new issue for this request? thanks

2014-09-16 20:04 GMT+08:00 Tcll [email protected]:

alright, I will try this out when I'm ready ;)

tbh, I only downloaded this because it was an interesting project, I'm too stockpiled with other projects to really do anything with it atm. XD

still, a python version of tox is pretty awesome :D

may I request a pure python port of the code for the future :) (meaning you won't have to build anything)

— Reply to this email directly or view it on GitHub https://github.com/aitjcize/PyTox/issues/15#issuecomment-55732427.

Cell: +886 910 380 678 LinkedIn: http://www.linkedin.com/in/weininghaung Personal Website: http://azhuang.me

aitjcize avatar Sep 17 '14 03:09 aitjcize

For the record Tcll; PyTox isn't a python version of Tox, but a 'language binding', in this case for Python. Wikipedia has a good explanation of this concept that can be found here. The hours of work required for your request would be immense and completely unpractical.

alexandervdm avatar Sep 17 '14 05:09 alexandervdm

Actually a possible solution to this is using python's ffi (ctypes) instead of writing C extensions, that way the code will be entirely in python.

2014-09-17 13:47 GMT+08:00 Alexander van der Meij [email protected] :

For the record Tcll; PyTox isn't a python version of Tox, but a 'language binding', in this case for Python. Wikipedia has a good explanation of this concept that can be found here http://en.wikipedia.org/wiki/Language_binding. The hours of work required for your request would be immense and completely unpractical.

— Reply to this email directly or view it on GitHub https://github.com/aitjcize/PyTox/issues/15#issuecomment-55851526.

Cell: +886 910 380 678 LinkedIn: http://www.linkedin.com/in/weininghaung Personal Website: http://azhuang.me

aitjcize avatar Sep 17 '14 05:09 aitjcize

actually, last checkup I did on ctypes, I found out it was slow... PyOpenGL does this though, but it uses a built DLL with a python wrapper. (actually there's quite a few DLLs that go into PyOpenGL)

EDIT: @alexandervdm: also, if you wanna call something "unethical" have you seen my program?? for one, if you're an expert at python and know C++, it shouldn't take hours to rewrite the PyTox binding. but yea, we'll leave it up to aitjcize to decide what he wants to do :) (you probably don't need anything super fast for this project)

Tcll avatar Sep 17 '14 13:09 Tcll

@Tcll ctypes is still our best option here. Implementing the tox protocol from ground-up is too time consuming, and thus not feasible given the time I have.

aitjcize avatar Sep 20 '14 18:09 aitjcize