diff --git a/platformio/platforms/base.py b/platformio/platforms/base.py index 55b3f6da..98b547c0 100644 --- a/platformio/platforms/base.py +++ b/platformio/platforms/base.py @@ -208,7 +208,7 @@ class BasePlatform(object): # append aliases of the installed packages for name, options in self.get_packages().items(): - if name not in installed_packages: + if "alias" not in options or name not in installed_packages: continue variables.append( "PIOPACKAGE_%s=%s" % (options['alias'].upper(), name))