<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>261947</bug_id>
          
          <creation_ts>2023-09-22 07:51:36 -0700</creation_ts>
          <short_desc>[AutoInstall] package install can fail due to dependency checking</short_desc>
          <delta_ts>2025-01-09 14:00:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=261893</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=262184</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=265809</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=262182</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=262154</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jbedard</cc>
    
    <cc>m_finkel</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1979343</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-09-22 07:51:36 -0700</bug_when>
    <thetext>Trying to run https://github.com/WebKit/WebKit/pull/17351 I&apos;ve run into:

Downloading dnslib-0.9.23...
Installing dnslib-0.9.23...
Traceback (most recent call last):
  File &quot;/var/folders/qk/hmjj9_lx2cg3_4v3vx3y7y_w0000gn/T/dnslib-62794/dnslib-0.9.23/setup.py&quot;, line 38, in &lt;module&gt;
    setup(name=&apos;dnslib&apos;,
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/setuptools/__init__.py&quot;, line 153, in setup
    return distutils.core.setup(**attrs)
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/setuptools/_distutils/core.py&quot;, line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/setuptools/dist.py&quot;, line 434, in __init__
    _Distribution.__init__(self, {
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/setuptools/_distutils/dist.py&quot;, line 293, in __init__
    self.finalize_options()
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/setuptools/dist.py&quot;, line 742, in finalize_options
    for ep in sorted(eps, key=by_order):
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/setuptools/dist.py&quot;, line 741, in &lt;lambda&gt;
    eps = map(lambda e: e.load(), pkg_resources.iter_entry_points(group))
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/pkg_resources/__init__.py&quot;, line 2449, in load
    self.require(*args, **kwargs)
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/pkg_resources/__init__.py&quot;, line 2472, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File &quot;/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/autoinstalled/python-3-arm64/pkg_resources/__init__.py&quot;, line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The &apos;pyparsing!=3.0.5,&gt;=2.0.2&apos; distribution was not found and is required by packaging
Failed to install dnslib-0.9.23!

Seemingly, setuptools is checking that requirements are satisfied for installed distributions, and finding that they in fact are not. This is because the AutoInstaller doesn&apos;t pay any attention to requirements whatsoever, and we merely rely on the distribution later importing another package we know of (and then installing it then) or via implicit_deps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979360</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-09-22 09:01:37 -0700</bug_when>
    <thetext>This seems to be happening within:

 EntryPoint.parse(&apos;setuptools_scm = setuptools_scm.integration:infer_version&apos;)

Likely a regression from bug 261893?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979361</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-09-22 09:02:22 -0700</bug_when>
    <thetext>(Or rather, this specific instance of the bug is caused by that — the underlying problem of not installing requirements has existed as long as the autoinstaller.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981271</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-29 07:52:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/116237345&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2086189</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-01-09 14:00:22 -0800</bug_when>
    <thetext>(In reply to Sam Sneddon [:gsnedders] from comment #2)
&gt; (Or rather, this specific instance of the bug is caused by that — the
&gt; underlying problem of not installing requirements has existed as long as the
&gt; autoinstaller.)

This specific instance was solved by https://bugs.webkit.org/show_bug.cgi?id=262184.

See also: bug 265809, bug 262182, and bug 262154 for other cases of this.

pip guarantees that all dependencies are installed before their dependents, and we should probably guarantee this too.

Most of the time this isn&apos;t a concern because we end up soon installing them when they are imported from the newly installed installation package, but because there are times where libraries check they are actually installed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>