如何在Windows上构建扩展? [英] How to build extensions on Windows?

查看:82
本文介绍了如何在Windows上构建扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为UNIX编写了一个简单的Python扩展,但是现在我需要在Windows上使用它来获得它。我很难搞清楚如何做到这一点

。我已经看过网页上说MS Visual Studio需要
,而其他那些说'不是真的,MinGW会工作。

然后那里是Mike Fletcher的网页

http: //www.vrplumber.com/programming/mstoolkit/ )描述了

详细说明如何构建扩展,但大多数链接到外部

软件不再有效。我认为可以说我完全丢失了,因为似乎没有权威的,最新的

描述如何制作这个工作。


-

Kevin D. Smith

I''ve written a simple Python extension for UNIX, but I need to get it
working on Windows now. I''m having some difficulties figuring out how
to do this. I''ve seen web pages that say that MS Visual Studio is
required, and other that say that''s not true, that MinGW will work.
Then there is Mike Fletcher''s web page
(http://www.vrplumber.com/programming/mstoolkit/) that describes in
detail how to build extensions, but most of the links to external
software are no longer valid. I think it''s safe to say that I am
completely lost, as there appears to be no authoritative, up-to-date
description on how to make this work.

--
Kevin D. Smith

推荐答案

Kevin D. Smith< Ke ********* @ sas.comwrote:
Kevin D. Smith <Ke*********@sas.comwrote:

然后是Mike Fletcher的网页

http://www.vrplumber.com/编程/ mstoolkit / )在

中描述了如何构建扩展,但大多数外部

软件的链接不再有效。我认为可以说我完全丢失了,因为似乎没有权威的,最新的

描述如何制作这个工作。
Then there is Mike Fletcher''s web page
(http://www.vrplumber.com/programming/mstoolkit/) that describes in
detail how to build extensions, but most of the links to external
software are no longer valid. I think it''s safe to say that I am
completely lost, as there appears to be no authoritative, up-to-date
description on how to make this work.



我设法在Windows中设置了一个编译工具链,然后是

教程那么你的问题是什么?


我安装了MS .NET 1.1及其SDK,用于Windows 2003的Platform SDK

服务器和mstoolkit(你必须从某个地方借用它,因为

它'不再可用'

然后我攻击了distutils并且一切运行良好。


唯一的问题是找到MS Toolkit 2003。 ..


-

劳伦斯 - http://www.oluyede.org/blog

没有什么比一个想法更危险

如果它是只有你有一个 - EA Chartier

I managed to set up a compilation toolchain in Windows following that
tutorial so what''s your problem?

I installed MS .NET 1.1 and its SDK, the Platform SDK for Windows 2003
sever and the mstoolkit (you have to borrow it from somewhere because
it''s not available anymore)
Then I hacked distutils and all worked well.

The only issue is to find the MS Toolkit 2003...

--
Lawrence - http://www.oluyede.org/blog
"Nothing is more dangerous than an idea
if it''s the only one you have" - E. A. Chartier


Kevin D Smith用以下方式启发我们:
Kevin D Smith enlightened us with:

我写了一个简单的Python扩展对于UNIX,但是我现在需要在Windows上使用

。我在解决如何做这件事时遇到了一些困难。
I''ve written a simple Python extension for UNIX, but I need to get
it working on Windows now. I''m having some difficulties figuring
out how to do this.



我必须这样做,而且我没有得到多少结果。我的解决方案:

安装Cygwin,使用附带的Python,并使用gcc,就像你习惯的那样使用
。像魅力一样工作,但编译的扩展名是

与python.org的常规Windows Pythons不兼容,而

ActiveState。


Sybren

-

Sybren St ?? vel

St ?? vel IT - http://www.stuvel.eu/


2006-09- 07 09:28:42 -0400, rh****@myself.com (Lawrence Oluyede)说:
On 2006-09-07 09:28:42 -0400, rh****@myself.com (Lawrence Oluyede) said:

Kevin D. Smith< Ke ********* @ sas.comwrote:
Kevin D. Smith <Ke*********@sas.comwrote:

> ;然后是Mike Fletcher的网页
http:/ /www.vrplumber.com/programming/mstoolkit/ )详细描述了如何构建扩展,但大多数外部
软件的链接不再有效。我认为可以说我完全迷失了,因为似乎没有关于如何使这项工作的权威,最新的描述。
>Then there is Mike Fletcher''s web page
(http://www.vrplumber.com/programming/mstoolkit/) that describes in
detail how to build extensions, but most of the links to external
software are no longer valid. I think it''s safe to say that I am
completely lost, as there appears to be no authoritative, up-to-date
description on how to make this work.



我设法在Windows中设置了一个编译工具链,然后

教程那么你的问题是什么?


我安装了MS .NET 1.1及其SDK,用于Windows 2003的Platform SDK

服务器和mstoolkit(你必须从某个地方借用它,因为

它'不再可用'

然后我攻击了distutils并且一切运行良好。


唯一的问题是找到MS Toolkit 2003。 ..


I managed to set up a compilation toolchain in Windows following that
tutorial so what''s your problem?

I installed MS .NET 1.1 and its SDK, the Platform SDK for Windows 2003
sever and the mstoolkit (you have to borrow it from somewhere because
it''s not available anymore)
Then I hacked distutils and all worked well.

The only issue is to find the MS Toolkit 2003...



换句话说,你所说的是我剩下的唯一问题是b $ b剩下的确切问题是我在最初的帖子中描述了你要求b $ b声称不是问题......太棒了!我想我现在可以上班了

现在编译这个扩展。


-

Kevin D. Smith


So in other words, what you''re saying is that the only issue I have
left is the exact issue that I described in my initial post that you
claimed isn''t a problem... Great! I guess I''l get right down to work
compiling that extension now.

--
Kevin D. Smith


这篇关于如何在Windows上构建扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆