Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention
Date: Fri, 20 Sep 2024 14:04:50 +0930	[thread overview]
Message-ID: <cac5a710-63ab-469c-bfcc-327da82fa036@suse.com> (raw)
In-Reply-To: <d148df614aef86dd6244dad3e0726750a3176b34.1726793990.git.wqu@suse.com>



在 2024/9/20 10:29, Qu Wenruo 写道:
> Currently the libbtrfsutil python binding requires `pypi-README.md` as a
> temporary file to act as the longer description.
> 
> But it requires the build to be run twice to generate the temporary
> file, preventing CI to properly build the package.
> 
> Fix it by removing the exception raising, after copy_readme().
> 
> Signed-off-by: Qu Wenruo <wqu@suse.com>

Please discard this one.

The offending patch shouldn't even be pushed to devel, introducing too 
much hassles but doesn't even bother to resolve the self-introduced problem.

Will send a proper patch for the long description, not building new 
fixes for such cursed solution.

Thanks,
Qu
> ---
>   libbtrfsutil/python/setup.py | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/libbtrfsutil/python/setup.py b/libbtrfsutil/python/setup.py
> index d4de81dbc1f2..fe9fdf8a52b5 100755
> --- a/libbtrfsutil/python/setup.py
> +++ b/libbtrfsutil/python/setup.py
> @@ -69,10 +69,8 @@ void add_module_constants(PyObject *m)
>   
>   
>   def read_readme():
> -    # FIXME: hackish, needs to be run twice to work
>       if not os.path.exists('pypi-README.md'):
>           copy_readme()
> -        raise Exception("Copied ../README.md to pypi-README.md, run again")
>       with open('pypi-README.md', 'r') as f:
>           desc = f.read()
>       return desc

  reply	other threads:[~2024-09-20  4:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-20  0:59 [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention Qu Wenruo
2024-09-20  4:34 ` Qu Wenruo [this message]
2024-09-20 14:28   ` David Sterba
2024-09-20 21:52     ` Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cac5a710-63ab-469c-bfcc-327da82fa036@suse.com \
    --to=wqu@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox