@@ -104,20 +104,22 @@ void doPipOperation(PackageInfo packageInfo, List<String> extraArgs) {
104104 * always build these locally.
105105 */
106106 private boolean doesWheelExist (PackageInfo packageInfo ) {
107- Optional <File > wheel = wheelCache .findWheel (packageInfo .getName (), packageInfo .getVersion (), pythonDetails );
108- if (wheel .isPresent ()) {
109- File wheelFile = wheel .get ();
110-
111- try {
112- FileUtils .copyFile (wheelFile , new File (wheelExtension .getWheelCache (), wheelFile .getName ()));
113- } catch (IOException e ) {
114- throw new UncheckedIOException (e );
107+ if (!packageSettings .isCustomized (packageInfo )) {
108+ Optional <File > wheel = wheelCache .findWheel (packageInfo .getName (), packageInfo .getVersion (), pythonDetails );
109+ if (wheel .isPresent ()) {
110+ File wheelFile = wheel .get ();
111+
112+ try {
113+ FileUtils .copyFile (wheelFile , new File (wheelExtension .getWheelCache (), wheelFile .getName ()));
114+ } catch (IOException e ) {
115+ throw new UncheckedIOException (e );
116+ }
117+
118+ if (PythonHelpers .isPlainOrVerbose (project )) {
119+ logger .lifecycle ("Skipping {}, in wheel cache {}" , packageInfo .toShortHand (), wheelFile );
120+ }
121+ return true ;
115122 }
116-
117- if (PythonHelpers .isPlainOrVerbose (project )) {
118- logger .lifecycle ("Skipping {}, in wheel cache {}" , packageInfo .toShortHand (), wheelFile );
119- }
120- return true ;
121123 }
122124
123125 ConfigurableFileTree tree = project .fileTree (wheelExtension .getWheelCache (), action -> {
0 commit comments