Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infers PKG_PATH by building tarball from source
If no PKG_PATH is set, then let's build it from source, using the upsream package repository. For Python projects, this amounts to: 1. Cloning the repo 2. Verifying the tag for a specific version 3. Checking out that tag 4. Running 'python setup.py sdist' to build tarball Once that's done, we can pass that tarball to the Debian package build logic. The tarball is not byte-for-byte identical after multiple builds, due to metadata discrepancies such as timestamps, but Debian package build logic *is* reproducible, given support of the SOURCE_DATE_EPOCH. So, even when using a newly built tarball with slightly different timestamps, rebuilding the same package will yield an identical checksum.
- Loading branch information