Windows compiled Python2.7 source code

Source: Internet
Author: User

This article began a series of articles, in-depth understanding of the Python source code, reading the "Python Source code Analysis," a book reading notes, is a long-term work. There are three parts: Python object model, Python virtual machine, Python module dynamic loading and memory management.

Python version: Python-2.7.13

Compilation tools: Microsoft Visual Studio EnterPrise

Get ready

Download Python-2.7.13 source on the Python website

Downloaded after the extracted directory for Python-2.7.13, directory content:

Compile

      • (1) Decompression Python-2.7.13
      • (2) Enter the Pcbuild folder and use vs 2017 to open the Pybuild.sln (vs solution) to the VS. IDE environment

      • (3) Right-click solution ' Pcbuild ' ⇒ properties

        • A. Common Properties

          Single-Boot project ⇒ Select Python

        • B. Configuration Properties

          • "Configuration" ⇒debug in the upper left corner (Release may error)
          • Project context ⇒ Select only Python/pythoncore
      • (4) First compile make_buildinfo and Make_versioninfo

        Right-click Make_buildinfo/make_versioninfo⇒ only for project ⇒ rebuild only

      • (5) Compile this solution and eventually generate the Python_d.exe and Python27_d.dll files under the starting Pcbuild folder, double-click Python_d.exe and go to the Python command-line environment.

Windows compiled Python2.7 source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.