X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D18CA3857008
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1684271229;
	bh=wvB691jc+VzB7ZGIj/s2e+jOa+oADcxkx0cmSxe9M9c=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=ytPE1DvigLDdWHf0gjmUKi23Au4HMDIYpdW4WKHiud80k6AhuTHwbXHZA2emy+tpD
	 fzSNucW9f6nkFptvm+ARC7hBKVs0/gpYL4VIwU6zVtyrsqDnNCenKAWHkxJgmvguym
	 vsN9P/KoXPjv0TvWu9UM8FGcnhDtu8LQTtH4oJXs=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47D753858C83
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1684271191; x=1686863191;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=Dit+p+loJc1gJPwSFRSLmjfSq5chgov2HRfTliGssLA=;
 b=ld4O5yTeirf7eJEDrlegxnrWBE2e3rmA4l5cA3JGcHDSosapvZr31zp4RhkEMdaof2
 OO4aWf/4FkjhukX/YcoxLtMdCucSeOLsTmQk+fY4HSb3vVBDlYOsx/I3wORAjgeCbUyT
 hzzIgFWRmNNxHSW/0QkFLZXW9cdpB07E2yvJeGe6+1u4MJoKGfrz3AP/KHSPKPHKH2eX
 3uWDiJ9ebAtM1FNK4/UdmCU50S2sTcwQ371aGnYQCGu7crPL22KvtZycMV958VLYulpF
 nGuN8XZkRBXlTcqiX5ZlVmzLQ0cbJAfgfYEBDjV26whOp2QUMeZGpRYZJyoeVWm4pO6d
 m2Zw==
X-Gm-Message-State: AC+VfDyzjjdDqVjlEgoASQ0+gj942XyncyOdt866SdssdY5YChsLoE7G
 Uh2R+jAmKIlSHvn3aiAEwt/K8LaHTB8WK8XXw4pRbSRMVR0=
X-Google-Smtp-Source: ACHHUZ5RZ3doW3w2xNZRoP+w4goh4Kh5xIDji2NupJ50UM0gpri9VpD7hL1wureTwEmOdybCa0r/d+Kh0AKuKxaO77g=
X-Received: by 2002:a17:903:2312:b0:1ac:656f:a697 with SMTP id
 d18-20020a170903231200b001ac656fa697mr43335750plh.21.1684271191174; Tue, 16
 May 2023 14:06:31 -0700 (PDT)
MIME-Version: 1.0
Date: Tue, 16 May 2023 23:06:20 +0200
Message-ID: <CAN+za=Oxko-2a2BMDYtt7ETATPS35Aez5+5zJsN8D6XJTPvXPw@mail.gmail.com>
Subject: python + XATTRs under cygwin?
To: cygwin@cygwin.com
X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Philippe Cerfon via Cygwin <cygwin@cygwin.com>
Reply-To: Philippe Cerfon <philcerf@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Hey there.

Is there any known way to use XATTRs (which Cygwin seems to support in
some way, at least the standard attr(1) tool seems to work and somehow
map them into the Windows world) with Python?

The `os` module of Python3 (>3.3) comes with:
os.getxattr()
os.listxattr()
os.removexattr()
os.setxattr()
(see https://docs.python.org/3/library/os.html#linux-extended-attributes)
but these seem to be missing from the Cygwin python packages.

There is even an upstream bug
(https://github.com/python/cpython/issues/90026) about this, which has
however been closed (not because it would be fixed, but because Cygwin
is no officially maintained platform).


There are two external python modules that support xattrs:
python-xattr (https://github.com/xattr/xattr)
python-pyxattr (https://pyxattr.k1024.org/)
but neither seems to be available in Cygwin.


Any ideas or change to get one of these (ideally the ones from os) running?

Thanks,
Philippe

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
