From: "Lewis" Received: from [74.96.34.245] (account lgrosenthal@2rosenthals.com HELO [192.168.201.140]) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTPSA id 4952599 for gnuports@2rosenthals.com; Fri, 30 Sep 2022 23:33:17 -0400 Subject: Re: [GNU Ports] Assertion error with pip building To: GNU Ports for eCS Mailing List References: Message-ID: <6337B4FC.5060402@2rosenthals.com> Date: Fri, 30 Sep 2022 23:33:16 -0400 User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Good eyes, Dave... ;-) On 09/30/22 10:45 pm, Dave Yeo wrote: > On 09/30/22 07:18 PM, Lewis G Rosenthal wrote: >> Greetings... >> >> For a project (Privoxy), I got involved in building Mbed TLS >> (https://www.trustedfirmware.org/projects/mbed-tls/). Mbed TLS seems to >> require the Jinja2 Pyhthon module (https://pypi.org/project/Jinja2/). >> >> Unfortunately, pip (well, gcc, more likely) is having a hard time >> building wheel, as a prereq for MarkupCode, which itself is a prereq for >> Jinja2. >> >> I've hackishly worked around the problem by removing line 91 from >> python3.9/site-packages/setuptools/command/install_lib.py: >> >> assert preserve_mode and preserve_times and not preserve_symlinks >> >> >> What I'm failing to understand, however, is why the assertion fails in >> the first place. It seems perfectly reasonable, unless I'm missing >> something. Before I open a ticket for bww about this, I thought I might >> mention it here, in case anyone has any ideas. >> >> Thanks >> >> Here's a bit of the output (mind the wrapping): >> > > Wonder about it not wanting to write to your $HOME directory, seems to > fail with copy_tree Interestingly enough, the pip subdirectory doesn't exist under .cache. I wonder if something went awry during the pip install. FWIW, I also tried building with --no-cache-dir, which simply quieted down that bit of noise (though the assertion still failed). I'll try adding the pip directory, though. Thanks -- Lewis