New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add library dependencies to platformio.ini #134

Closed
gandy92 opened this Issue Mar 22, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@gandy92

gandy92 commented Mar 22, 2015

The file platformio.inialready contains information on the framework required to build a project. If it is missing, platformio offers to automatically install it. However, if the same project requires a library already known to the platformio library manager, the following manual steps are necessary:

  1. Build using "platformio run" and examine output for missing library
  2. Perform library ID search using "platformio lib search"
  3. Use "platformio lib install ID" to install library
  4. Repeat from step 1

I propose adding a new statement to platformio.ini that allow to specify required libraries in the form

require-libs = ID1 [, ID2 [, ..]]

instructing platformio to check if one or more of the required libs are missing and if so, suggest to automatically install them before proceeding the build.

@pelikhan

This comment has been minimized.

pelikhan commented Mar 22, 2015

Yes, declaring library depedencies is a great feature in npm.

Sent from my Windows Phone


From: Andymailto:notifications@github.com
Sent: ý3/ý22/ý2015 15:57
To: ivankravets/platformiomailto:platformio@noreply.github.com
Subject: [platformio] Add library dependencies to platformio.ini (#134)

The file platformio.inialready contains information on the framework required to build a project. If it is missing, platformio offers to automatically install it. However, if the same project requires a library already known to the platformio library manager, the following manual steps are necessary:

  1. Build using "platformio run" and examine output for missing library
  2. Perform library ID search using "platformio lib search"
  3. Use "platformio lib install ID" to install library
  4. Repeat from step 1

I propose adding a new statement to platformio.ini that allow to specify required libraries in the form

require-libs = ID1 [, ID2 [, ..]]

instructing platformio to check if one or more of the required libs are missing and if so, suggest to automatically install them before proceeding the build.


Reply to this email directly or view it on GitHubhttps://github.com//issues/134.

@ivankravets ivankravets self-assigned this Mar 23, 2015

@ivankravets ivankravets added this to the 1.3.0 milestone Mar 23, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 23, 2015

I don't have any objections :) How about to name this option like install_libs?

@ivankravets ivankravets added the docs label Mar 23, 2015

@gandy92

This comment has been minimized.

gandy92 commented Mar 23, 2015

Sounds good to me 😃

@ivankravets ivankravets modified the milestones: 1.4.0, 1.3.0 Mar 27, 2015

@valeros valeros removed this from the 1.4.0 milestone Apr 3, 2015

@ivankravets ivankravets added this to the 2.0.0 milestone Apr 8, 2015

@ivankravets ivankravets referenced this issue Apr 8, 2015

Closed

PlatformIO 2.0 #159

11 of 11 tasks complete

ivankravets added a commit that referenced this issue May 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment