mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fixed an issue with "ImportError: cannot import name '_get_backend' from 'cryptography.hazmat.backends'" when using Remote Development // Resolve #3652
This commit is contained in:
@ -12,6 +12,7 @@ PlatformIO Core 5
|
|||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Fixed an issue when using a custom git/ssh package with `platform_packages <https://docs.platformio.org/page/projectconf/section_env_platform.html#platform-packages>`__ option (`issue #3624 <https://github.com/platformio/platformio-core/issues/3624>`_)
|
- Fixed an issue when using a custom git/ssh package with `platform_packages <https://docs.platformio.org/page/projectconf/section_env_platform.html#platform-packages>`__ option (`issue #3624 <https://github.com/platformio/platformio-core/issues/3624>`_)
|
||||||
|
- Fixed an issue with "ImportError: cannot import name '_get_backend' from 'cryptography.hazmat.backends'" when using `Remote Development <https://docs.platformio.org/page/plus/pio-remote.html>`__ on RaspberryPi device (`issue #3652 <https://github.com/platformio/platformio-core/issues/3652>`_)
|
||||||
|
|
||||||
5.0.0 (2020-09-03)
|
5.0.0 (2020-09-03)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -20,7 +20,7 @@ import sys
|
|||||||
from platformio import __core_packages__, exception, fs, util
|
from platformio import __core_packages__, exception, fs, util
|
||||||
from platformio.compat import PY2
|
from platformio.compat import PY2
|
||||||
from platformio.package.manager.tool import ToolPackageManager
|
from platformio.package.manager.tool import ToolPackageManager
|
||||||
from platformio.package.meta import PackageSpec
|
from platformio.package.meta import PackageItem, PackageSpec
|
||||||
from platformio.proc import get_pythonexe_path
|
from platformio.proc import get_pythonexe_path
|
||||||
|
|
||||||
|
|
||||||
@ -95,16 +95,8 @@ def build_contrib_pysite_deps(target_dir):
|
|||||||
if os.path.isdir(target_dir):
|
if os.path.isdir(target_dir):
|
||||||
fs.rmtree(target_dir)
|
fs.rmtree(target_dir)
|
||||||
os.makedirs(target_dir)
|
os.makedirs(target_dir)
|
||||||
with open(os.path.join(target_dir, "package.json"), "w") as fp:
|
|
||||||
json.dump(
|
|
||||||
dict(
|
|
||||||
name="contrib-pysite",
|
|
||||||
version="2.%d%d.0" % (sys.version_info.major, sys.version_info.minor),
|
|
||||||
system=util.get_systype(),
|
|
||||||
),
|
|
||||||
fp,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
# build dependencies
|
||||||
pythonexe = get_pythonexe_path()
|
pythonexe = get_pythonexe_path()
|
||||||
for dep in get_contrib_pysite_deps():
|
for dep in get_contrib_pysite_deps():
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
@ -115,11 +107,31 @@ def build_contrib_pysite_deps(target_dir):
|
|||||||
"install",
|
"install",
|
||||||
# "--no-cache-dir",
|
# "--no-cache-dir",
|
||||||
"--no-compile",
|
"--no-compile",
|
||||||
|
"--no-binary",
|
||||||
|
":all:",
|
||||||
"-t",
|
"-t",
|
||||||
target_dir,
|
target_dir,
|
||||||
dep,
|
dep,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# build manifests
|
||||||
|
with open(os.path.join(target_dir, "package.json"), "w") as fp:
|
||||||
|
json.dump(
|
||||||
|
dict(
|
||||||
|
name="contrib-pysite",
|
||||||
|
version="2.%d%d.0" % (sys.version_info.major, sys.version_info.minor),
|
||||||
|
system=util.get_systype(),
|
||||||
|
),
|
||||||
|
fp,
|
||||||
|
)
|
||||||
|
pm = ToolPackageManager()
|
||||||
|
pkg = PackageItem(target_dir)
|
||||||
|
pkg.metadata = pm.build_metadata(
|
||||||
|
target_dir, PackageSpec(owner="platformio", name="contrib-pysite")
|
||||||
|
)
|
||||||
|
pkg.dump_meta()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user