public class MovePythonWhlDataStep extends Object implements Step
Step
that moves the contents of the {package}-{version}.data directory within an
extracted .whl if that directory exists.
This is a basic, incomplete implementation of PEP491. It does not honor WHEEL files' Install-Paths-To directive in .dist-info, and does not do any fancy path rewriting. For now, it just moves things out of the data prefix (If other distutils' prefixes are required, we can do those later, but they vary much more per-platform than data_files. See https://svn.python.org/projects/python/tags/r32/Lib/distutils/command/install.py for the various subdirs that can exist, and how they vary per-platform).
Constructor and Description |
---|
MovePythonWhlDataStep(ProjectFilesystem projectFilesystem,
Path extractedWhlDir) |
Modifier and Type | Method and Description |
---|---|
StepExecutionResult |
execute(ExecutionContext context) |
String |
getDescription(ExecutionContext context) |
String |
getShortName() |
public MovePythonWhlDataStep(ProjectFilesystem projectFilesystem, Path extractedWhlDir)
public StepExecutionResult execute(ExecutionContext context) throws IOException
execute
in interface Step
IOException
public String getShortName()
getShortName
in interface Step
public String getDescription(ExecutionContext context)
getDescription
in interface Step