Skip to content

Commit 6414f5c

Browse files
committed
Remove "may have fewer packages available" warning (closes #1272)
1 parent 6167599 commit 6414f5c

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

product/gradle-plugin/src/main/kotlin/PythonDsl.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ abstract class PythonExtension @Inject constructor (
6969
"Invalid Python version '$value'. Available versions are " +
7070
"${Common.PYTHON_VERSIONS_SHORT}.")
7171
}
72-
if (value != Common.DEFAULT_PYTHON_VERSION) {
73-
println("Warning: Python version $value may have fewer packages " +
74-
"available. If you experience problems, try switching to " +
75-
"version ${Common.DEFAULT_PYTHON_VERSION}.")
76-
}
7772
_version = value
7873
}
7974

product/gradle-plugin/src/test/integration/test_gradle_plugin.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,6 @@ def test_minify_variant(self):
457457

458458

459459
class PythonVersion(GradleTestCase):
460-
WARNING = (WARNING + "Python version {} may have fewer packages available. "
461-
"If you experience problems, try switching to version " +
462-
DEFAULT_PYTHON_VERSION + ".")
463-
464460
# To allow a quick check of the setting, this test only covers two versions.
465461
def test_change(self):
466462
run = self.RunGradle("base", run=False)
@@ -484,11 +480,6 @@ def check_version(self, run, version):
484480
f"PythonVersion/{version}", python_version=version, abis=abis,
485481
requirements=["six.py"])
486482

487-
if version == DEFAULT_PYTHON_VERSION:
488-
self.assertNotInLong(self.WARNING.format(".*"), run.stdout, re=True)
489-
else:
490-
self.assertInLong(self.WARNING.format(version), run.stdout, re=True)
491-
492483
def test_variant(self):
493484
self.RunGradle("base", "PythonVersion/variant",
494485
variants={"alpha-one-debug": dict(python_version="3.8"),

product/runtime/docs/sphinx/android.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,8 @@ You can set your app's Python version like this::
235235
}
236236
}
237237

238-
In :doc:`this version of Chaquopy <../versions>`, the default Python version is 3.8. The
239-
other available versions are 3.9, 3.10, 3.11, 3.12 and 3.13, but these may have fewer
240-
:ref:`packages <android-requirements>` available.
238+
In :doc:`this version of Chaquopy <../versions>`, the default Python version is 3.8, and
239+
the other available versions are 3.9, 3.10, 3.11, 3.12 and 3.13.
241240

242241
.. _android-source:
243242

product/runtime/docs/sphinx/changelog.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ Features
2323
Bugfixes
2424
--------
2525

26-
- The Gradle requirements task is now rerun when the app's Python version
27-
changes, even if this did not result in a change in the `buildPython`.
28-
(`#1266 <https://github.com/chaquo/chaquopy/issues/1266>`__)
2926
- .pth files are now processed after `sys.path` is fully initialized. (`#1338
3027
<https://github.com/chaquo/chaquopy/issues/1338>`__)
3128
- The importer now recognizes libraries with an SOABI suffix such as

0 commit comments

Comments
 (0)