How to install Python package from source on Windows

bartc bc at freeuk.com
Tue May 16 18:32:50 EDT 2017


On 16/05/2017 23:15, breamoreboy at gmail.com wrote:
> On Tuesday, May 16, 2017 at 10:19:06 PM UTC+1, Chris Angelico wrote:
>> On Wed, May 17, 2017 at 7:14 AM, bartc wrote:
>>> That PCbuild line is step 3 of Quick Start. You have to get past steps 1 and
>>> 2 first. It talks about something called Git; I don't know what that is or
>>> what I'm supposed to do with it, but it's a 35MB download. (Not that that is
>>> very big these days, but 35MB (compressed size and there may be more to
>>> come) suggests complexity that I don't want to get into.)
>>
>> It's 2017 and you're a programmer. Are you unfamiliar with source
>> control, or just unfamiliar with git? Either way, you should look into
>> correcting that.
>>
>> ChrisA
>
> Please, be fair.  Assuming of course that you can find out what "git" is, your 50 bps X25 link is going to take some time to download 35MB as broadband hasn't yet reached the UK.  Then you've got to get Visual Studio Community Edition and follow the horrendously complicated instructions that I gave previously.  It is impossible to do this unless you have at least five PhDs, all of which must be in completely different subjects.  Come on you lot, own up, who didn't realise I was that smart?

There's another little flaw I forgot to mention.

The purpose of the test a few posts up was to get an idea of how fast 
CPython might be when compiled with something like Tiny C, compared with 
compiling it with gcc (on Linux) or MSVC (on Windows).

I've already got a working CPython binary to measure; I need the same 
version built with Tiny C to compare.

Unfortunately downloading Visual Studio is not really going to help with 
that. Good thing I remembered in time.

(Whether it is possible to build CPython with an alternative compiler, 
I've no idea. I suspect that the source code has dependencies on both 
gcc and MSVC. In other words, there will be conditional paths for gcc 
(or clang which is a clone) and MSVC, with no other possibilities.)

-- 
bartc




More information about the Python-list mailing list