Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'cpython': 0.05; '(ie.': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'windows,': 0.09; 'python': 0.11; 'bug': 0.12; 'language.': 0.14; "(i'm": 0.16; '.py': 0.16; 'easier.': 0.16; 'ides': 0.16; 'investigate': 0.16; 'rarely': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'route,': 0.16; 'sources.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'command': 0.22; 'installation': 0.23; 'header:User-Agent:1': 0.23; 'source': 0.25; 'supported': 0.26; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'errors': 0.30; "i'm": 0.30; '(which': 0.31; 'directory,': 0.31; 'obscure': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; 'sources': 0.33; 'there,': 0.34; 'maybe': 0.34; "i'd": 0.34; 'one,': 0.35; 'but': 0.35; 'possible': 0.36; 'url:org': 0.36; 'too': 0.37; 'outstanding': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'use.': 0.39; 'visual': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'eventually': 0.60; 'simple': 0.61; "you'll": 0.62; 'our': 0.64; 'charset:windows-1252': 0.65; 'details': 0.65; 'here': 0.66; 'containing': 0.69; 'ending': 0.78; 'hopeless': 0.84; 'mingw': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Building CPython Date: Wed, 13 May 2015 20:58:13 +0100 References: <7JN4x.37133$Q41.15375@fx25.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-179-197.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <7JN4x.37133$Q41.15375@fx25.am4> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431547115 news.xs4all.nl 2960 [2001:888:2000:d::a6]:42886 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90582 On 13/05/2015 20:36, BartC wrote: > I'm interested in playing with the CPython sources. I need to be able to > build under Windows, but don't want to use make files (which rarely work > properly), nor do a 6GB installation of Visual Studio Express which is > what seems to be needed (I'm hopeless with complicated IDEs anyway). > > Is it possible to do this by using mingw-gcc to compile the .c files of > the Python sources one by one, or is it one of those complicated > projects where some of the source is generated as it goes along? > > I thought I'd start with the source file containing Py_Main and continue > from there, but some modules compile and some don't, obscure errors that > I don't want to investigate unless it's going to be worthwhile (ie. > eventually ending up with a python.exe that can run simple .py programs). > Before you spend too much time on the mingw route, check out the outstanding issues for it on the bug tracker. Then you'll maybe realise that using the supported VS setup is far easier. Everything you need is in the PCBuild directory, including pcbuild.sln for use with VS and build.bat for command line use. Details here https://docs.python.org/devguide/setup.html#windows -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence