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.

1209 questions
270
votes
5 answers

What are the differences between Autotools, Cmake and Scons?

What are the differences between Autotools, Cmake and Scons?
Wazery
  • 13,971
  • 15
  • 55
  • 91
162
votes
8 answers

How to 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
  • 48,328
  • 33
  • 147
  • 228
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
  • 12
27
votes
7 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
  • 17,581
  • 40
  • 105
  • 153
26
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
  • 828,234
  • 170
  • 1,097
  • 1,237
22
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
  • 4,868
  • 5
  • 35
  • 53
21
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
  • 23,861
  • 32
  • 81
  • 109
21
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
  • 61,385
  • 7
  • 119
  • 164
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
  • 5,473
  • 5
  • 34
  • 46
21
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
  • 207,058
  • 53
  • 381
  • 474
20
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
  • 828,234
  • 170
  • 1,097
  • 1,237
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
  • 171,795
  • 155
  • 551
  • 900
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
  • 21,564
  • 16
  • 57
  • 65
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,017
  • 6
  • 50
  • 92
15
votes
3 answers

Changing default C compiler in Linux, using SCons

On my Linux platform, I have several versions of gcc. Under usr/bin I have: gcc34 gcc44 gcc Here are some outputs: $ gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48) $ gcc44 --version gcc44 (GCC) 4.4.0 20090514 (Red Hat 4.4.0-6) I need…
ereOn
  • 48,328
  • 33
  • 147
  • 228
1
2 3
80 81