mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Disable SSL for Python < 2.7.9
This commit is contained in:
@ -12,6 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
from os.path import dirname, join
|
from os.path import dirname, join
|
||||||
@ -41,7 +42,8 @@ class PioPlusPackageManager(PackageManager):
|
|||||||
self,
|
self,
|
||||||
join(util.get_home_dir(), "packages"), [
|
join(util.get_home_dir(), "packages"), [
|
||||||
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
|
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
|
||||||
"https://dl.platformio.org/packages/manifest.json"
|
"http%s://dl.platformio.org/packages/manifest.json" %
|
||||||
|
("" if sys.version_info < (2, 7, 9) else "s")
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user