You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Till Toenshoff (JIRA)" <ji...@apache.org> on 2018/01/23 04:02:01 UTC

[jira] [Commented] (MESOS-8477) Make clean fails without Python artifacts.

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

Till Toenshoff commented on MESOS-8477:
---------------------------------------

Prefixing that {{find}} with a dash to make any failure non-fatal might do the trick here.
{noformat}
-find python \( -name "build" -o -name "dist" -o -name "*.pyc" -o -name "*.egg-info" \) -exec rm -rf '{}' \+{noformat}

> Make clean fails without Python artifacts.
> ------------------------------------------
>
>                 Key: MESOS-8477
>                 URL: https://issues.apache.org/jira/browse/MESOS-8477
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.5.0
>            Reporter: Till Toenshoff
>            Priority: Major
>
> Make clean may fail if there are no Python artifacts created by previous builds.  
> {noformat}
> $ make clean{noformat}
> {noformat}
> [...]
> rm -rf java/target
> rm -f examples/java/*.class
> rm -f java/jni/org_apache_mesos*.h
> find python \( -name "build" -o -name "dist" -o -name "*.pyc"	\
>   -o -name "*.egg-info" \) -exec rm -rf '{}' \+
> find: ‘python’: No such file or directory
> make[1]: *** [clean-python] Error 1
> make[1]: Leaving directory `/home/centos/workspace/mesos/build/src'
> make: *** [clean-recursive] Error 1{noformat}
>  
> Triggered by [https://github.com/apache/mesos/blob/62d392704c499e06da0323e50dfd016cdac06f33/src/Makefile.am#L2218-L2219]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)