Install Python and scons

Source: Internet
Author: User

Download an open-source code without makefile. There are only a lot of sconscript files. Remember that a tool called scons is used to build this file.

You have to install it.

Install Python first.

Assume that the installation directory is c: \ python2720.

To install scons, go to http://sourceforge.net/projects/scons/files/scons/2.1.0/to download the latest 2.1.0.pdf.

The zip package I downloaded can be downloaded if it is convenient.

Decompress the package to the installation directory of Python with scons2.1.0 to enter the directory. See the README file.

Enter

Setup. py install -- standard-lib

It will be compiled and installed. Under the python installation directory python2720, A \ scripts directory and a scons. bat batch file are generated.

Add the python root directories c: \ python2720 and c: \ python2720 \ scripts to the environment variables.

Otherwise, enter scons "H: \ XXX" (representing your project file) in c: \ python2720 \ scripts)

Will also appear

Scons. scons: *** no sconstruct file found

Error. Remember.

 

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.