The piw-remove script is used to manually remove a version of a package from the system. All builds for the specified version will be forgotten, all files generated by such builds will be deleted, and all logged downloads will be deleted too.
By default, the version removed will not be marked to skip. Hence, after a short while the master is likely to attempt to re-build it. What happens at this point depends on several factors:
- If the version is still available on PyPI, and the build dependencies on the chosen slave are sufficient, it will (potentially) build successfully and re-appear on the system.
- If the version has been removed from PyPI (which is a reason to remove it from piwheels), the build will fail. The failed build will be logged in the system and will not be attempted again.
usage: piw-remove [-h] [--version] [-c FILE] [-q] [-v] [-l FILE] [-y] [-s] [--import-queue ADDR] package version
the name of the package to remove
the version of the package to remove
show this help message and exit
show program’s version number and exit
specify a configuration file to load
produce less console output
produce more console output
log messages to the specified file
run non-interactively; never prompt during operation
mark the version to prevent future build attempts
the address of the queue used by piw-remove (default: (ipc:///tmp/piw-import); this should always be an ipc address
The following section documents the protocol used between the importer and the tasks that it talks to in the piw-master. Each protocol operates over a separate queue. All protocols in the piwheels system follow a similar structure:
- Each message is a list of Python objects.
- The first element in the list is a string indicating the type of message.
- Additional elements depend on the type of the message.
- A given message type always contains the same number of elements (there are no variable length messages).
7.3.1. Mr Chase¶
- The utility sends
["REMOVE", package, version, skip]:
- package is the name of the package to remove.
- version is the version of the package to remove.
- skip is
Trueif the version should never be built again, and
- If the removal fails (e.g. if the package or version does not exist), the
master will send
["ERROR", args, ...].
- If the removal is successful, the master replies with
This utility is typically used in response to a request from a package maintainer to remove a specific build from the system. Either because it has been withdrawn from PyPI itself, or because the presence of a piwheels build is causing issues in and of itself (both circumstances have occurred).
The utility can be run in a batch mode with
--yes but still requires
invoking once per deletion required (you cannot remove multiple versions in a
The return code will be 0 if the version was successfully removed. If anything fails, the return code will be non-zero and no files should be deleted (but this cannot be guaranteed in all circumstances).
The utility should only ever be run directly on the master node (opening the import queue to other machines is a potential security risk).