Permalink
Browse files

Remove _build/detected-config.h from the tarball.

If the user ran ./configure it wouldn't cause a problem, but it could
have if they didn't.
  • Loading branch information...
Andy Chu
Andy Chu committed Feb 26, 2018
1 parent 4d0c1e0 commit 49b63ef8b571487757374386962cc5c2865cf9aa
Showing with 13 additions and 2 deletions.
  1. +13 −2 build/compile.sh
View
@@ -285,8 +285,19 @@ _headers() {
python-headers() {
local c_module_srcs=$1
# remove Python/.. -- it causes problems with tar.
_headers $c_module_srcs | egrep --only-matching '[^ ]+\.h' \
# 1. -MM outputs Makefile fragments, so egrep turns those into proper lines.
#
# 2. The user should generated detected-config.h, so remove it.
#
# 3. # gcc outputs paths like
# Python-2.7.13/Python/../Objects/stringlib/stringdefs.h
# but 'Python/..' causes problems for tar.
#
_headers $c_module_srcs \
| egrep --only-matching '[^ ]+\.h' \
| grep -v '_build/detected-config.h' \
| sed 's|^Python/../||' \
| sort | uniq | add-py27
}

0 comments on commit 49b63ef

Please sign in to comment.