(self, req, tempd, python_tag=None)
return os.path.join(tempd, wheel_name)
Build one InstallRequirement using the PEP 517 build process.

        Returns path to wheel if successfully built. Otherwise, returns None.
Build one InstallRequirement using the PEP 517 build process.
Build one InstallRequirement using the PEP 517 build process .
def _build_one_pep517(self, req, tempd, python_tag=None):
        """Build one InstallRequirement using the PEP 517 build process.

        Returns path to wheel if successfully built. Otherwise, returns None.
        """
        assert req.metadata_directory is not None
        if self.build_options:
            # PEP 517 does not support --build-options
            logger.error('Cannot build wheel for %s using PEP 517 when '
                         '--build-options is present' % (req.name,))
            return 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)
def _build_one_pep517 ( self , req , tempd , python_tag = None ) : assert req . metadata_directory is not None if self . build_options : # PEP 517 does not support --build-options logger . error ( 'Cannot build wheel for %s using PEP 517 when ' '--build-options is present' % ( req . name , ) ) return 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 )