Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Can't build on mingw Windows XP #15

Open
Tcll opened this issue Aug 21, 2014 · 15 comments
Open

Can't build on mingw Windows XP #15

Tcll opened this issue Aug 21, 2014 · 15 comments
Labels

Comments

@Tcll
Copy link

Tcll commented Aug 21, 2014

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??

@aitjcize
Copy link
Owner

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?

@Tcll
Copy link
Author

Tcll commented Aug 21, 2014

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

@aitjcize
Copy link
Owner

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.

@Tcll
Copy link
Author

Tcll commented Aug 21, 2014

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)

@aitjcize
Copy link
Owner

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

@Tcll
Copy link
Author

Tcll commented Aug 21, 2014

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)

@aitjcize
Copy link
Owner

Does this problem still persist?

@Tcll
Copy link
Author

Tcll commented Sep 14, 2014

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 :)

@alexandervdm
Copy link
Contributor

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.

@Tcll
Copy link
Author

Tcll commented Sep 16, 2014

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)

@aitjcize
Copy link
Owner

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
#15 (comment).

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

@alexandervdm
Copy link
Contributor

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.

@aitjcize
Copy link
Owner

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
#15 (comment).

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

@Tcll
Copy link
Author

Tcll commented Sep 17, 2014

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)

@aitjcize
Copy link
Owner

@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 aitjcize added the bug label Sep 21, 2014
@aitjcize aitjcize changed the title can't build Can't build on mingw Windows XP Sep 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants