.deb dependencies from Python packages ignore iteration.
authorBrett Smith <brett@curoverse.com>
Wed, 3 Feb 2016 13:19:34 +0000 (08:19 -0500)
committerBrett Smith <brett@curoverse.com>
Wed, 3 Feb 2016 13:19:34 +0000 (08:19 -0500)
See comment for rationale.
Inspired by <https://github.com/curoverse/arvados/pull/35>.
No issue #.

jenkins/run-library.sh

index 83e0ea0252ef7ab3b872a870fa52a4d8d95eec79..23ed383d2a3e3fdd58fcb44516f0cd9f65a01c78 100755 (executable)
@@ -218,6 +218,12 @@ fpm_build () {
   declare -a COMMAND_ARR=("fpm" "--maintainer=Ward Vandewege <ward@curoverse.com>" "-s" "$PACKAGE_TYPE" "-t" "$FORMAT")
   if [ python = "$PACKAGE_TYPE" ]; then
     COMMAND_ARR+=(--exclude=\*/{dist,site}-packages/tests/\*)
+    if [ deb = "$FORMAT" ]; then
+        # Dependencies are built from setup.py.  Since setup.py will never
+        # refer to Debian package iterations, it doesn't make sense to
+        # enforce those in the .deb dependencies.
+        COMMAND_ARR+=(--deb-ignore-iteration-in-dependencies)
+    fi
   fi
 
   if [[ "$PACKAGE_NAME" != "$PACKAGE" ]]; then