              prefix = plat_specific and BASE_EXEC_PREFIX or BASE_PREFIX
          else:
              prefix = plat_specific and EXEC_PREFIX or PREFIX
-+    
+ 
 +    if IS_PYPY:
 +        # PyPy-specific schema
 +        if standard_lib:
 +            return os.path.join(prefix, "lib-python", sys.version[0])
- 
++
      if os.name == "posix":
          if plat_specific or standard_lib:
+             # Platform-specific modules (any module from a non-pure-Python

     }
 
 # user site schemes
--- a/setuptools/_distutils/sysconfig.py  2021-08-14 01:44:55.714195094 -0700
+++ b/setuptools/_distutils/sysconfig.py  2021-08-14 01:52:34.986961752 -0700
@@ -142,19 +142,16 @@
     If 'prefix' is supplied, use it instead of sys.base_prefix or
     sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
     """
-    if IS_PYPY:
-        # PyPy-specific schema
-        if prefix is None:
-            prefix = PREFIX

diff --color -Naur setuptools-58.2.0.orig/setuptools/_distutils/command/install.py setuptools-58.2.0/setuptools/_distutils/command/install.py
--- setuptools-58.2.0.orig/setuptools/_distutils/command/install.py	2021-10-02 00:11:16.000000000 -0300
+++ setuptools-58.2.0/setuptools/_distutils/command/install.py	2021-10-05 15:09:54.530267780 -0300
@@ -44,19 +44,13 @@
         },
     'nt': WINDOWS_SCHEME,
     'pypy': {
