|
|
@@ -54,6 +54,7 @@ APP_ROOT := $(realpath .)
|
|
|
APP_NAME ?= $(SETUPTOOLS_NAME)
|
|
|
APP_VERSION ?= $(shell $(ENV_PYTHON) setup.py --version)
|
|
|
APP_FULL_NAME ?= $(APP_NAME)-$(APP_VERSION)
|
|
|
+RSYNC_OPT ?= --copy-unsafe-links -a
|
|
|
|
|
|
|
|
|
BUILD_DIR := $(APP_ROOT)/build
|
|
|
@@ -203,7 +204,7 @@ sdist:
|
|
|
@rm -rf $(SDIST_DIR)
|
|
|
@mkdir -p $(SDIST_DIR)
|
|
|
@# Copy sources of our app
|
|
|
- @rsync --copy-unsafe-links -a ./ $(SDIST_DIR)/ $(SDIST_EXCLUDES)
|
|
|
+ @rsync $(RSYNC_OPT) ./ $(SDIST_DIR)/ $(SDIST_EXCLUDES)
|
|
|
@$(MAKE) -C $(SDIST_DIR) clean
|
|
|
@# Also make a tarball
|
|
|
@tar -C $(SDIST_DIR)/.. -czf $(SDIST_TGZ) $(APP_FULL_NAME)
|
|
|
@@ -221,7 +222,7 @@ bdist: ext-eggs compile
|
|
|
@rm -rf $(BDIST_DIR)
|
|
|
@mkdir -p $(BDIST_DIR)
|
|
|
@# Copy built sources of our app
|
|
|
- @rsync --copy-unsafe-links -a ./ $(BDIST_DIR)/ $(BDIST_EXCLUDES)
|
|
|
+ @rsync $(RSYNC_OPT) ./ $(BDIST_DIR)/ $(BDIST_EXCLUDES)
|
|
|
@# Copy thirdparty eggs into the ext-eggs dir
|
|
|
@mkdir -p $(BDIST_DIR)/ext-eggs
|
|
|
@if test -n '$(wildcard ext-py/*/dist)' ; then \
|