diff --git a/package-build.el b/package-build.el index df40ce8..676101b 100644 --- a/package-build.el +++ b/package-build.el @@ -1473,8 +1473,11 @@ Return the archive entry for the package and store the package in `package-build-archive-dir'." (let ((default-directory (package-build--working-tree rcp))) (unwind-protect - (progn + (let ((process-environment (copy-sequence process-environment))) (funcall package-build-checkout-function rcp) + (setenv "PACKAGE_VERSION" (package-build--get-version rcp)) + (setenv "PACKAGE_REVISION" (package-build--get-commit rcp)) + ;; (setenv "PACKAGE_REVDESC" (package-build--get-revdesc rcp)) (when-let ((command (oref rcp shell-command))) (package-build--message "Running %s" command) (package-build--run-sandboxed