Git repo directory "scons" empty.

I just downloaded the Blender source using…

sudo git clone http://git.blender.org/blender.git

I used the
./blender/build_files/build_environment/install_deps.sh

command/script to install dependencies.

The next step according to the docs is to execute the command
python scons/scons.py

in the “root” blender source directory.

The problem is that the scons directory is empty, there is no scons.py in it.

Looking at the git-tree on the website also shows an empty scons directory.
http://git.blender.org/gitweb/gitweb.cgi/blender.git/tree

Which docs specifically are you referring to? Whichever ones they are, they are likely to be outdated/incomplete, as you’ll also need to run a few “submodule” commands to grab scons, extensions, and a few other bits and pieces which are pulled in from external repos.

See here:
http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/Scons#Get_the_source

That guide solved the issue. It seems the scons directory isn’t pulled with the initial

git clone git.blender.org

command, but it’s either created or pulled with one or some of the subsequent git commands.