You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "haosdent (JIRA)" <ji...@apache.org> on 2015/10/01 10:46:26 UTC

[jira] [Commented] (MESOS-3564) release candidate builds fail to unpack Python wheels

    [ https://issues.apache.org/jira/browse/MESOS-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14939521#comment-14939521 ] 

haosdent commented on MESOS-3564:
---------------------------------

This is not a bug of Mesos. Because in python setuptools, would replace "-" to "_" in version string.

https://github.com/jaraco/setuptools/blob/master/pkg_resources/__init__.py#L1395

{code}
def to_filename(name):
    """Convert a project or version name to its filename-escaped form
    Any '-' characters are currently replaced with '_'.
    """
    return name.replace('-','_')
{code}

> release candidate builds fail to unpack Python wheels
> -----------------------------------------------------
>
>                 Key: MESOS-3564
>                 URL: https://issues.apache.org/jira/browse/MESOS-3564
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>            Reporter: David Robinson
>            Priority: Minor
>
> Twitter creates internal release candidate builds by modifying the version define in configure.ac:
> {noformat}
> sed -i~ "s/\[mesos\], \[.*\]/[mesos], [0.26.0-rc1]/" configure.ac
> {noformat}
> {noformat}
> --- configure.ac~	2015-09-30 11:22:30.000000000 -0700
> +++ configure.ac	2015-09-30 14:24:01.018998406 -0700
> @@ -18,7 +18,7 @@
>  # Process this file with autoconf to produce a configure script.
>  
>  AC_PREREQ([2.61])
> -AC_INIT([mesos], [0.26.0])
> +AC_INIT([mesos], [0.26.0-rc1])
>  
>  # Have autoconf setup some variables related to the system.
>  AC_CANONICAL_HOST
> {noformat}
> The method described above has recently started causing problems for Python wheels. Changing the version as per above causes wheel unpacking to fail:
> {noformat}
> 18:15:20 DEBUG: cd python/dist &&                           \
> 18:15:20 DEBUG:     for whl in python/dist/mesos-0.26.0-rc1-py2-none-any.whl python/dist/mesos.cli-0.26.0-rc1-py2-none-any.whl python/dist/mesos.interface-0.26.0-rc1-py2-none-any.whl python/dist/mesos.native-0.26.0-rc1-cp27-none-linux_x86_64.whl; do                       \
> 18:15:20 DEBUG:         PYTHONPATH=/var/tmp/mesos-0.26.0-rc1-root-mockbuild/usr/local/lib/python2.7/site-packages:/builddir/build/BUILD/mesos-0.26.0/3rdparty/distribute-0.6.26:/builddir/build/BUILD/mesos-0.26.0/3rdparty/pip-1.5.6:/builddir/build/BUILD/mesos-0.26.0/3rdparty/wheel-0.24.0                  \
> 18:15:20 DEBUG:         PYTHONUSERBASE=/var/tmp/mesos-0.26.0-rc1-root-mockbuild/usr/local               \
> 18:15:20 DEBUG:         /usr/bin/python2.7 -c "import pip; pip.main()" install          \
> 18:15:20 DEBUG:         --user                  \
> 18:15:20 DEBUG:         --find-links=file:///builddir/build/BUILD/mesos-0.26.0/src/python/dist      \
> 18:15:20 DEBUG:         /builddir/build/BUILD/mesos-0.26.0/src/$whl;                    \
> 18:15:20 DEBUG:     done
> 18:15:21 DEBUG: Requirement '/builddir/build/BUILD/mesos-0.26.0/src/python/dist/mesos-0.26.0-rc1-py2-none-any.whl' looks like a filename, but the file does not exist
> 18:15:21 DEBUG: mesos-0.26.0-rc1-py2-none-any.whl is not a supported wheel on this platform.
> 18:15:21 DEBUG: Storing debug log for failure in /builddir/.pip/pip.log
> 18:15:21 DEBUG: Requirement '/builddir/build/BUILD/mesos-0.26.0/src/python/dist/mesos.cli-0.26.0-rc1-py2-none-any.whl' looks like a filename, but the file does not exist
> 18:15:21 DEBUG: mesos.cli-0.26.0-rc1-py2-none-any.whl is not a supported wheel on this platform.
> 18:15:21 DEBUG: Storing debug log for failure in /builddir/.pip/pip.log
> 18:15:22 DEBUG: Requirement '/builddir/build/BUILD/mesos-0.26.0/src/python/dist/mesos.interface-0.26.0-rc1-py2-none-any.whl' looks like a filename, but the file does not exist
> 18:15:22 DEBUG: mesos.interface-0.26.0-rc1-py2-none-any.whl is not a supported wheel on this platform.
> 18:15:22 DEBUG: Storing debug log for failure in /builddir/.pip/pip.log
> 18:15:22 DEBUG: Requirement '/builddir/build/BUILD/mesos-0.26.0/src/python/dist/mesos.native-0.26.0-rc1-cp27-none-linux_x86_64.whl' looks like a filename, but the file does not exist
> 18:15:22 DEBUG: mesos.native-0.26.0-rc1-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
> {noformat}
> Something is sanitizing the version, so 0.26.0-rc1 becomes 0.26.0_rc1:
> {noformat}[builder@ci_server ~]# ls -la /var/lib/mock/mesos-5-x86_64/root/builddir/build/BUILD/mesos-0.26.0/src/python/dist/
> total 181772
> -rw-r--r--. 1 builder builder     1706 Sep 30 18:15 mesos-0.26.0_rc1-py2.7.egg
> -rw-r--r--. 1 builder builder     2171 Sep 30 18:15 mesos-0.26.0_rc1-py2-none-any.whl
> -rw-r--r--. 1 builder builder     9241 Sep 30 18:15 mesos.cli-0.26.0_rc1-py2.7.egg
> -rw-r--r--. 1 builder builder     6440 Sep 30 18:15 mesos.cli-0.26.0_rc1-py2-none-any.whl
> -rw-r--r--. 1 builder builder    50481 Sep 30 18:15 mesos.interface-0.26.0_rc1-py2.7.egg
> -rw-r--r--. 1 builder builder    25667 Sep 30 18:15 mesos.interface-0.26.0_rc1-py2-none-any.whl
> -rw-r--r--. 1 builder builder 93007783 Sep 30 18:16 mesos.native-0.26.0_rc1-cp27-none-linux_x86_64.whl
> -rw-r--r--. 1 builder builder 93008349 Sep 30 18:15 mesos.native-0.26.0_rc1-py2.7-linux-x86_64.egg
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)