| Newsgroups |
gmane.linux.lfs.beyond.devel |
| Message-ID |
<[email protected]> |
On 5/14/25 4:40 AM, Pierre Labastie wrote:
> Le mercredi 14 mai 2025 à 03:40 -0500, Bruce Dubbs a écrit :
>> On 5/14/25 2:55 AM, Rainer Fiebig ([email protected] via blfs-dev
>> Mailing List) wrote:
>>> Am 14.05.25 um 06:07 schrieb Xi Ruoyao ([email protected] via
>>> blfs-dev
>>> Mailing List):
>>>> On Tue, 2025-05-13 at 18:13 -0500, Bruce Dubbs wrote:
>>>>> On 5/13/25 5:59 PM, Joe Locash ([email protected] via blfs-dev
>>>>> Mailing List) wrote:
>>>>>>
>>>>>> On 5/13/25 6:53 PM, Bruce Dubbs ([email protected] via
>>>>>> blfs-dev Mailing List) wrote:
>>>>>>> On 5/13/25 5:34 PM, Joe Locash ([email protected] via blfs-
>>>>>>> dev Mailing List) wrote:
>>>>>>>>
>>>>>>>> On 5/13/25 5:51 PM, Bruce Dubbs
>>>>>>>> ([email protected] via blfs-dev Mailing List)
>>>>>>>> wrote:
>>>>>>>>> I looked at my build log and didn't see where it is
>>>>>>>>> using an internet connection.
>>>>>>>>> Can you show where that is happening?
>>>>>>>>
>>>>>>>>
>>>>>>>> /usr/bin/python3 -m build zenmap/
>>>>>>>> * Creating isolated environment: venv+pip...
>>>>>>>> * Installing packages in isolated environment:
>>>>>>>> - setuptools
>>>>>>>> > /usr/bin/python3 -m pip --python /tmp/build-env-
>>>>>>>> fr8do3me/bin/python install
>>>>>>>> --use-pep517 --no-warn-script-location --no-compile -
>>>>>>>> r /tmp/build-reqs-
>>>>>>>> uok0756y.txt
>>>>>>>> < WARNING: Retrying (Retry(total=4, connect=None,
>>>>>>>> read=None, redirect=None,
>>>>>>>> status=None)) after connection broken by
>>>>>>>> 'NewConnectionError('<pip._vendor.urllib3.connection.HTTP
>>>>>>>> SConnection object
>>>>>>>> at 0x7f83a5b830e0>: Failed to establish a new
>>>>>>>> connection: [Errno -3]
>>>>>>>> Temporary failure in name resolution')':
>>>>>>>> /simple/setuptools/
>>>>>>>>
>>>>>>>> ....
>>>>>>>>
>>>>>>>> < ERROR: Could not find a version that satisfies the
>>>>>>>> requirement setuptools
>>>>>>>> (from versions: none)
>>>>>>>> < ERROR: No matching distribution found for setuptools
>>>>>>>
>>>>>>> Interesting. I have:
>>>>>>>
>>>>>>> /usr/bin/python3 -m build zenmap/
>>>>>>> /usr/bin/python3 -m build ndiff/
>>>>>>> * Creating isolated environment: venv+pip...
>>>>>>> * Installing packages in isolated environment:
>>>>>>> * Creating isolated environment: venv+pip...
>>>>>>> * Installing packages in isolated environment:
>>>>>>> Compiling libnsock
>>>>>>> ...
>>>>>>>
>>>>>>> We are installing setuptools in LFS. Did you not have that
>>>>>>> installed?
>>>>
>>>> It cannot use the setuptools in LFS because they are not creating
>>>> venv
>>>> with --system-site-packages (like what we are doing for various
>>>> Python
>>>> modules). If you purge ~/.cache/pip and disconnect the network
>>>> (or use
>>>> unshare -r -n to create an environment with no network) you can
>>>> reproduce the issue.
>>> "--system-site-packages" is indeed used several times in BLFS-12.3
>>> but
>>> contrary to other options it's not explained anywhere.
>>
>> Indeed. The system-site-packages option to the venv module is used
>> 21 times, mostly
>> in python-dependencies and python-modules. Almost all are in the
>> context of running
>> tests. This seems to be a rather unusual situation as I can't recall
>> documenting an
>> option for tests.
>>
>> For Python packages we don't document Python3/pip3 modules like wheel
>> (in LFS),
>> install, pytest, or venv. Most of those are fairly obvious, but venv
>> might not jump
>> out to new users.
>>
>> I'm not sure what the best option is for this issue.
>
> Well, document the option, not the command itself. See the (of course
> amendable) commit 2635fba3d9. If we don't want to document options in
> tests (why?), we need at least to document this option in samba.
I didn't say we shouldn't document options in tests. I was just saying I think it
would be something we haven't done in the past.
I suppose we could create an xinclude:
------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
<para>
<option>-m venv --system-site-packages</option>:
Create a virtual environment and give it access to the system
site-packages.
</para>
------
And then add that to all the Command Explanations sections of the pages
that use it.
-- Bruce
--
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page