This is the mail archive of the
cygwin
mailing list for the Cygwin project.
extending a VS python with cygwin
- From: Tom Roche <Tom_Roche at pobox dot com>
- To: cygwin at cygwin dot com,
- Date: Tue, 10 Aug 2010 11:11:21 -0400
- Subject: extending a VS python with cygwin
- Reply-to: cygwin at cygwin dot com, Tom Roche <Tom_Roche at pobox dot com>
summary: I've got a version of python that I need for other purposes.
I'm trying to build duplicity to use with that python. I'm getting
me@cygwinBox ~/bin/duplicity-0.6.09$ python setup.py install
...
> error: Python was built with Visual Studio 2003;
> extensions must be built with a compiler than can generate
> compatible binaries. Visual Studio 2003 was not found on this
> system. If you have Cygwin installed, you can try compiling with
> MingW32, by passing "-c mingw32" to setup.py.
How to do this?
details:
I mostly run linux, and I've been using python-based `duplicity`
http://duplicity.nongnu.org/
to back that up. I've got an older winxp box (SP3, uptodate with WU)
which I keep mostly to run ArcGIS, which has happily run many versions
of cygwin (which I keep uptodate) over the years. I'd like to be able to
restore my linux home to my cygwin home for the rare occasions when I
need to use the winxp box. To do that, I'd like to install duplicity on
the cygwin box. That install process (best described by the somewhat
downlevel
http://blog.khorun.com/2008/09/using-duplicity-on-windows-under-cygwin.html
) works for the install of the prerequisite GnuPGInterface and boto
python modules (process=[download tarball, tar xfz, python setup.py
install]) but fails for the install of duplicity itself, with the
error:
me@cygwinBox ~/bin/duplicity-0.6.09$ python setup.py install
...
> error: Python was built with Visual Studio 2003;
Note that I'd cheerfully replace that version of python (the 2.5.2
that shipped with my ArcGIS 9.3), except that I use some ArcGIS
extensions which seem to choke on other pythons :-( so I'd prefer to
build against that if at all possible.
> extensions must be built with a compiler than can generate
> compatible binaries. Visual Studio 2003 was not found on this
> system. If you have Cygwin installed, you can try compiling with
> MingW32, by passing "-c mingw32" to setup.py.
I tried to take the advice offered, but fail:
me@cygwinBox ~/bin/duplicity-0.6.09$ python -c mingw32 setup.py install
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> NameError: name 'mingw32' is not defined
me@cygwinBox ~/bin/duplicity-0.6.09$ python setup.py -c mingw32 install
> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> or: setup.py --help [cmd1 cmd2 ...]
> or: setup.py --help-commands
> or: setup.py cmd --help
> error: option -c not recognized
me@cygwinBox ~/bin/duplicity-0.6.09$ python setup.py install -c mingw32
> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> or: setup.py --help [cmd1 cmd2 ...]
> or: setup.py --help-commands
> or: setup.py cmd --help
> error: invalid command 'mingw32'
What's the appropriate syntax here? Or how else should I fix this
build problem?
TIA, Tom Roche <Tom_Roche@pobox.com>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple