LoginSignup
2
3

More than 5 years have passed since last update.

やってみようSCons: はじめに

Last updated at Posted at 2017-11-03

やってみようSCons: はじめに

SConsはPythonで実装されたmakeのようなビルドツールです。

SCons公式

セットアップ手順

1. Python3.6.xをインストール

python.org からインストーラをダウンロードしてインストール

2. SConsをインストール

> python -m pip install --egg scons
DEPRECATION: --egg has been deprecated and will be removed in the future. This flag is mutually exclusive with large parts of pip, and actually using it invalidates pip's ability to manage the installation process.
Collecting scons
Installing collected packages: scons
Successfully installed scons-3.0.0

なんか --egg が廃止警告が出ていますが2017年11月現在、これを指定しないとエラーが出てインストールできないようです。1

3. PATHを通す

※Windows限定です。

環境変数PATHにPythonのインストールディレクトリにあるScriptsを追加します。Pythonのインストールパスは↓で調べられます。

> python -c "import sys; print(sys.executable)"
C:\Users\xxx\AppData\Local\Programs\Python\Python36\python.exe

Python3.6はLocalAppDataへインストールされるので、通常は %LOCALAPPDATA%\Programs\Python\Python36\Scripts になります。

> scons -v
SCons by Steven Knight et al.:
        script: v3.0.0.rel_3.0.0:4395:8972f6a2f699[MODIFIED], 2017/09/18 13:28:16, by bdbaddog on ubuntu-16
        engine: v3.0.0.rel_3.0.0:4395:8972f6a2f699[MODIFIED], 2017/09/18 13:28:16, by bdbaddog on ubuntu-16
        engine path: ['u:\\bee\\lib\\site-packages\\scons-3.0.0\\SCons']
Copyright (c) 2001 - 2017 The SCons Foundation

バージョンが表示されればインストールは成功です。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3