public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* extending a VS python with cygwin
@ 2010-08-10 15:11 Tom Roche
  2010-08-16 12:54 ` Jason Tishler
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Roche @ 2010-08-10 15:11 UTC (permalink / raw)
  To: cygwin


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: extending a VS python with cygwin
  2010-08-10 15:11 extending a VS python with cygwin Tom Roche
@ 2010-08-16 12:54 ` Jason Tishler
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Tishler @ 2010-08-16 12:54 UTC (permalink / raw)
  To: cygwin

Tom,

On Tue, Aug 10, 2010 at 11:11:21AM -0400, Tom Roche wrote:
> I tried to take the advice offered, but fail:
> 
> me@cygwinBox ~/bin/duplicity-0.6.09$ python -c mingw32 setup.py install
> [snip]
>
> What's the appropriate syntax here? Or how else should I fix this
> build problem?

Searching the web, I found the following:

    python setup.py build --compiler=mingw32 install

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-16 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-10 15:11 extending a VS python with cygwin Tom Roche
2010-08-16 12:54 ` Jason Tishler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).