code: def _build_one_pep517(self, req, tempd, python_tag=None):
          
          assert req.metadata_directory is not None
          try:
              req.spin_message = 'Building wheel for %s (PEP 517)' % (req.name,)
              logger.debug('Destination directory: %s', tempd)
              wheel_name = req.pep517_backend.build_wheel(
                  tempd,
                  metadata_directory=req.metadata_directory
              )
              if python_tag:
                  # General PEP 517 backends don't necessarily support
                  # a "--python-tag" option, so we rename the wheel
                  # file directly.
                  new_name = replace_python_tag(wheel_name, python_tag)
                  os.rename(
                      os.path.join(tempd, wheel_name),
                      os.path.join(tempd, new_name)
                  )
                  # Reassign to simplify the return at the end of function
                  wheel_name = new_name
          except Exception:
              logger.error('Failed building wheel for %s', req.name)
              return None
          return os.path.join(tempd, wheel_name)
docs: Build one InstallRequirement using the PEP 517 build process.
  
          Returns path to wheel if successfully built. Otherwise, returns None.