Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3561

Re: installing setuptools on Windows custom python install

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <eric.frederich@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '(using': 0.05; 'socket': 0.05; 'modules.': 0.07; 'python': 0.07; 'importerror:': 0.09; 'pm,': 0.11; 'win32': 0.12; 'received:74.125.82.44': 0.14; 'received:mail-ww0-f44.google.com': 0.14; 'wrote:': 0.14; 'subject:python': 0.15; 'library': 0.15; '.........': 0.16; '_socket': 0.16; 'dll,': 0.16; 'dlls': 0.16; 'montag': 0.16; 'rohdewald': 0.16; 'subject:install': 0.16; 'subject:installing': 0.16; 'wolfgang': 0.16; 'thanks,': 0.17; 'stuff': 0.18; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'seems': 0.21; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'manually': 0.22; 'mon,': 0.22; '(and': 0.22; 'that?': 0.23; 'worked': 0.24; 'installation': 0.25; "i'm": 0.26; 'message-id:@mail.gmail.com': 0.28; 'skip:" 30': 0.29; 'subject:Windows': 0.29; 'solution.': 0.29; 'named': 0.30; 'cc:addr:python.org': 0.31; 'import': 0.32; 'project': 0.32; 'created': 0.33; 'module': 0.33; 'file.': 0.34; 'there': 0.35; 'file': 0.35; 'that,': 0.35; 'put': 0.35; 'copied': 0.35; 'executable': 0.35; 'some': 0.37; 'should': 0.37; 'exactly': 0.37; 'apr': 0.38; 'convenient': 0.38; 'eric': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'files': 0.38; 'built': 0.39; 'under': 0.39; 'how': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'best': 0.60; '2011': 0.62; 'enable': 0.65; 'strategy': 0.71; 'studio': 0.72
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZeIvbTuMobt8IbBnwe/7dIgKZSCUoOKWZv9BxItaIAw=; b=mxHjMXVfOI623wQG7494y9Gsh2aSfeTSAEwHTsFCnsOEnoHNJL3OxjAk1x53/MXaQ3 UeF2aXgjMEuN89KRHgI+pID/Rt9y5Oe3EJWwd6up2IOy0ab1JL/N+9FUv0cykayaCfG+ UMrzWqR+R9kqYCl0aeKjTG0RK0nZwNoL5xR7M=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=a0o4tKiBOZtwbGM3GPD5l68Px2v8MGnDQrPvRVqazzE8gi/dXmaDMVFdtQruNm27+L MY/K1Z5uwoT7/WpUjhYl5eSVvMRvujE5Bmvi7d83qn/69fw1aZTtAoXFqnUnIJWkuWf2 63rvQKHTHnNzkiV3l+c+TF4Lr6GY7Urj57WaI=
MIME-Version 1.0
In-Reply-To <201104182030.48000.wolfgang@rohdewald.de>
References <BANLkTin_=W891b86uJ=dpAhA9m1ihe2GyQ@mail.gmail.com> <201104182030.48000.wolfgang@rohdewald.de>
Date Tue, 19 Apr 2011 10:07:42 -0400
Subject Re: installing setuptools on Windows custom python install
From Eric Frederich <eric.frederich@gmail.com>
To wolfgang@rohdewald.de
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.560.1303222065.9059.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 82.94.164.166
X-Trace 1303222065 news.xs4all.nl 81479 [::ffff:82.94.164.166]:38450
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3561

Show key headers only | View raw


I do not have a DLLs folder.
I created this installation of Python myself since I needed it built
with Visual Studio 2005.
I followed instructions under PC\readme.txt
This file mentioned nothing about a DLLs folder.

>From PC\readme.txt .........

    The best installation strategy is to put the Python executable (and
    DLL, for Win32 platforms) in some convenient directory such as
    C:/python, and copy all library files and subdirectories (using XCOPY)
    to C:/python/lib.

I see that there is a _socket project in the Visual Studio solution.
I built this manually and copied the _socket.pyx file do a manually
created DLLs folder.
This seems to have worked but it bothers me that there is no mention
of this stuff in the readme.txt file.

The readme file did mention that there is a config.c file that I am to
edit to enable other modules.
If I added a call to init_socket() in this file would the socket
library then be built into the main dll file?
I'm not sure exactly how to use this config.c file.

Thanks,
~Eric

On Mon, Apr 18, 2011 at 2:30 PM, Wolfgang Rohdewald
<wolfgang@rohdewald.de> wrote:
> On Montag 18 April 2011, Eric Frederich wrote:
>>   File "F:\My_Python27\lib\socket.py", line 47, in <module>
>>     import _socket
>> ImportError: No module named _socket
>>
>> F:\pyside\setuptools-0.6c11>
>
> I have C:\Python27
>
> and within that, DLLS\_socket.pyd
>
> this is what import _socket should find
>
> do you have that?
>
> --
> Wolfgang
>

Back to comp.lang.python | Previous | Next | Find similar


Thread

Re: installing setuptools on Windows custom python install Eric Frederich <eric.frederich@gmail.com> - 2011-04-19 10:07 -0400

csiph-web