[Python-Dev] Have I got my hg dependencies correct?

Skip Montanaro skip.montanaro at gmail.com
Thu Oct 20 07:47:42 EDT 2016


I've recently run into a problem building the math and cmath modules
for 2.7. (I don't rebuild very often, so this problem might have been
around for awhile.) My hg repos look like this:

* My cpython repo pulls from https://hg.python.org/cpython

* My 2.7 repo (and other non-tip repos) pulls from my cpython repo

I think this setup was recommended way back in the day when hg was new
to the Python toolchain to avoid unnecessary network bandwidth.

So, if I execute

hg pull
hg update

in first cpython, then 2.7 repos I should be up-to-date, correct?
However, rebuilding in my 2.7 repo fails to build math and cmath. The
compiler complains that Modules/_math.o doesn't exist. If I manually
execute

make Modules/_math.o
make

after the failure, then the math and cmath modules build.

Looking on bugs.python.org I saw this closed issue:

http://bugs.python.org/issue24421

which seems related. Is it possible that the fix wasn't propagated to
the 2.7 branch? Or perhaps I've fouled up my hg repo relationships? My
other repos which depend on cpython (3.5, 3.4, 3.3, and 3.2) all build
the math module just fine.

I'm running on an ancient MacBook Pro with OS X 10.11.6 (El Capitan)
and XCode 8.0 installed.

Any suggestions?

Skip


More information about the Python-Dev mailing list