Add link check to make sdist.

This will cause `make sdist` to fail on platforms which create
hard links of symbolic links as regular files, such as MacOS (Darwin).

This prevents accidental creation of an sdist tarball without
the necessary symbolic links.
This commit is contained in:
Matt Clay 2018-10-08 12:47:39 -07:00
commit 19c0511f57
2 changed files with 56 additions and 1 deletions

View file

@ -231,8 +231,12 @@ install_manpages:
gzip -9 $(wildcard ./docs/man/man1/ansible*.1)
cp $(wildcard ./docs/man/man1/ansible*.1.gz) $(PREFIX)/man/man1/
.PHONY: sdist_check
sdist_check:
$(PYTHON) packaging/sdist/check-link-behavior.py
.PHONY: sdist
sdist: clean docs
sdist: sdist_check clean docs
$(PYTHON) setup.py sdist
.PHONY: sdist_upload