Allthough it is possible to build modules in Python2.3.3 and distutils
with cygwin,
by running:
setup.py build --compiler=cygwin
(after i created the libpython23.a)
running:
setup.py install
afterwards, complains about not building with msvs v.6,
since my Python distribution is built with it.
Since previous Python releases for windows allowed install of modules
that were built with different compilers then that of the current
distribution, with was this feature removed from distutils in Python
version 2.3?
Is there a workaround for this problem?
Can i simply copy the module file in the proper directory?
I do not want to install VS ver.6.
Thank you. 4 2312
Andreou,
On Thu, Feb 05, 2004 at 07:13:45PM +0200, Andreou Giannis wrote: Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin, by running: setup.py build --compiler=cygwin
AFAICT, you should use --compiler=mingw32, if you want to create a
native Win32 Python extension:
$ python setup.py --dry-run build --compiler=mingw32
running build
running build_ext
building 'readline' extension
C:\Cygwin\bin\gcc.exe -mno-cygwin ...
^^^^^^^^^^^
Using --compiler=cygwin, I get the following:
$ python setup.py --dry-run build --compiler=cygwin
running build
running build_ext
building 'readline' extension
C:\Cygwin\bin\gcc.exe -mcygwin ...
^^^^^^^^
which should produce a Cygwin Python extension.
Is there a workaround for this problem?
I don't know.
Can i simply copy the module file in the proper directory?
Yes. FWIW, this is how I install the Win32 Python readline module
every time I upgrade my Win32 Python installation...
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
On 2004-02-05, Andreou Giannis <ga******@unipi.gr> wrote: Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin, by running: setup.py build --compiler=cygwin (after i created the libpython23.a) running: setup.py install afterwards, complains about not building with msvs v.6, since my Python distribution is built with it.
python setup.py install --skip-build
Note that --skip-build should work in other places where it currently
doesn't/is ignored (bdist comes to mind, any workarounds for it except
bdist_wininst, which oddly works?)
Is there a workaround for this problem? Can i simply copy the module file in the proper directory?
If it's a simple package, there shoulnd't be any problem with this.
--
{ Marek Baczyński :: UIN 57114871 :: GG 161671 :: JID im******@jabber.gda.pl }
{ http://www.vlo.ids.gda.pl/ | imbaczek at poczta fm | http://www.promode.org }
... .. .. .. ... ... ...... evolve or face extinction ...... ... ... .. .. .. ..
Marek 'Baczek' Baczyński <im******@poczta.no.onet.spam.pl> writes: On 2004-02-05, Andreou Giannis <ga******@unipi.gr> wrote: Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin, by running: setup.py build --compiler=cygwin (after i created the libpython23.a) running: setup.py install afterwards, complains about not building with msvs v.6, since my Python distribution is built with it.
python setup.py install --skip-build
Note that --skip-build should work in other places where it currently doesn't/is ignored (bdist comes to mind, any workarounds for it except bdist_wininst, which oddly works?)
[...]
Thomas Heller pointed out here some time back how to reorder the
arguments to work around this.
I'm too tired to remember how exactly...
John
Hi!
Andreou Giannis <ga******@unipi.gr> wrote in message news:<40***************@unipi.gr>... Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin,
.... I do not want to install VS ver.6.
....
Look here: http://sebsauvage.net/python/mingw.html
Writing C/C++ Python extensions without Microsoft Visual C++
--
Oleg This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Carl Waldbieser |
last post by:
I tried to adapt the instructions for building the M2Crypto module
(http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version
compatible with Python2.3, but I've had some mixed results....
|
by: Rich Krauter |
last post by:
>(I am aware that there is a Windows version of
Python. >But it expects the
>Windows syntax for paths, not the Unix/SFU paths.
And >for all I know there
>are other incompatibilities as well.)
...
|
by: Jonathan Polley |
last post by:
I have one account on a WindowsXP machine that refuses to run IDLE (or
any other python script that uses Tk). Other people can login to that
PC and IDLE runs just fine, so it is not an...
|
by: mrstephengross |
last post by:
Ok, I know there are already a million posts on this group about
getting Python to build with MinGW. I've been through many of them, and
have still not found a good comprehensive way to accomplish...
|
by: mrstephengross |
last post by:
Ok, I'm working on building python 2.4.2 on cygwin. I *think* it's
version 3.0 or 3.1 (is there a quick way to find out what version of
cygwin is running within a shell?)
Anyway, it appears to...
|
by: JW |
last post by:
I have a lousy little Python extension, generated with the generous help
of Pyrex. In Linux, things are simple. I compile the extension, link it
against some C stuff, and *poof*! everything...
|
by: Chris Lasher |
last post by:
Should a Python module not intended to be executed have shebang/
hashbang (e.g., "#!/usr/bin/env python") or not? I'm used to having a
shebang in every .py file but I recently heard someone argue...
|
by: kyosohma |
last post by:
Hi,
I am trying to get a small group of volunteers together to create
Windows binaries for any Python extension developer that needs them,
much like the package/extension builders who volunteer...
|
by: mg |
last post by:
When make gets to the _ctypes section, I am getting the following in
my output:
building '_ctypes' extension
creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/
Modules/_ctypes...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
header("Location:".$urlback);
Is this the right layout the...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
| |