Questions tagged [scons]

SCons is a cross platform, open source build tool and an alternative to the classic "Make". It works based on a declarative description of a build, using the Python programming language.

SCONS

SCons is a cross-platform, open source build tool and an alternative to the classic "Make". It works basing on a declarative description of a build, using the Python programming language. This gives SCons a great deal of flexibility and power, for example: its capabilities can be easily extended with custom builders and emitters.

1293 questions
291
votes
5 answers

What are the differences between Autotools, Cmake and Scons?

What are the differences between Autotools, Cmake and Scons?
Wazery
  • 15,394
  • 19
  • 63
  • 95
253
votes
8 answers

How can I replace (or strip) an extension from a filename in Python?

Is there a built-in function in Python that would replace (or remove, whatever) the extension of a filename (if it has one)? Example: print replace_extension('/home/user/somefile.txt', '.jpg') In my example: /home/user/somefile.txt would become…
ereOn
  • 53,676
  • 39
  • 161
  • 238
29
votes
4 answers

How to work around "scons: warning: Two different environments were specified for target"

Suppose I have an SConstruct file that looks like this: env = Environment() env.Program("a", ["a.c", "util.c"]) env.Program("b", ["b.c", "util.c"]) This build works properly with no SCons warning messages. However, if I modify this to specify…
Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
29
votes
4 answers

Trouble reinstalling MongoDB with Homebrew using OS X 10.10 Yosemite Beta

To reiterate, I'm running the first OS X 10.10 beta, and attempting to reinstall MongoDB with Homebrew. After running $ brew install mongodb, this is the output: ==> Downloading http://downloads.mongodb.org/src/mongodb-src-r2.6.1.tar.gz ==>…
joshferrara
  • 759
  • 2
  • 7
  • 13
29
votes
8 answers

How to install scons on Mac OS X

Can you please tell me how can I install scons on MacOSX? I don't see a mac specified download from http://www.scons.org/ Thank you.
n179911
  • 19,547
  • 46
  • 120
  • 162
27
votes
1 answer

What is the file .sconsign.dblite for?

What would happen if I delete it? Should I put it under version control?
K.-Michael Aye
  • 5,465
  • 6
  • 44
  • 56
23
votes
4 answers

How do I set scons system include path

Using scons I can easily set my include paths: env.Append( CPPPATH=['foo'] ) This passes the flag -Ifoo to gcc However I'm trying to compile with a lot of warnings enabled. In particular with env.Append( CPPFLAGS=['-Werror', '-Wall', '-Wextra']…
Michael Anderson
  • 70,661
  • 7
  • 134
  • 187
22
votes
1 answer

Why doesn't clang show color output under Scons?

When building with Scons, I can configure it to use clang like so: env["CXX"] = "clang++" However, it doesn't seem to preserve the color information that clang outputs. How can I make scons preserve the color?
Verhogen
  • 27,221
  • 34
  • 90
  • 109
22
votes
6 answers

How to build SCons projects with Eclipse CDT?

We have a fairly large C/C++ project using scons for the building. I'd like to go at an attempt to build this through Eclipse-CDT. Anyone have any experience with this and can tell me the steps to set up scons as a builder. (NOT using the…
nos
  • 223,662
  • 58
  • 417
  • 506
21
votes
1 answer

How can I make Clang's "scan-build" work with SCons?

I've got a project built with SCons and I'm trying to use the Clang Static Analyzer to analyze the code. However, when running scan-build scons SCons seems to ignore the settings introduced by scan-build. How can I make this work?
Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
21
votes
7 answers

How to optimize the startup time of an SCons script?

I have an SCons script that takes around 10 seconds just to find out that nothing needs to be rebuild, which feels awfully long for what is essentially a rather small project. Reading the SConscript itself takes just a second or two, most of the…
Grumbel
  • 6,585
  • 6
  • 39
  • 50
20
votes
5 answers

ant+cpptasks vs. scons vs. make

I'm looking into scons and I just want to make sure I know what the alternatives are, before I invest a chunk of brain cells into something completely different. I've been using GNU make in the past but have never been particularly happy with…
Jason S
  • 184,598
  • 164
  • 608
  • 970
16
votes
2 answers

How to I get scons to invoke an external script?

I'm trying to use scons to build a latex document. In particular, I want to get scons to invoke a python program that generates a file containing a table that is \input{} into the main document. I've looked over the scons documentation but it is not…
saffsd
  • 23,742
  • 18
  • 63
  • 67
16
votes
4 answers

How to execute scons in a python3 environment?

I need to import python3 scripts within a scons script. (I use scons v3.0.1.7) Is there a way to execute scons with python 3 ? The offical scons site says This will be the first release to support Python versions earlier than 2.7 as well as…
Chouettou
  • 1,009
  • 1
  • 9
  • 10
16
votes
3 answers

Choosing between Scons and Waf in Large Projects

We are thinking about converting a really large project from using GNU Make to some more modern build tool. My current suggestion is to use SCons or Waf. Currently: Build times are around 15 minutes. Around 100 developers. About 10 percent of code…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
1
2 3
86 87