Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

How does one include composer package in a drush make file?

The more general answer, the better. There's already a composer drush module allowing drush dl to handle composer packages, but that requires a shell command for every dependency.

Given our future use of Symfony, composer and other Symfony bundles is likely to become more important in the future.

share|improve this question
    
I think this is a feature request for the Drush issue queue. –  greg_1_anderson Dec 5 '12 at 15:02
add comment

1 Answer 1

You should use yoursite.make to download the Drupal module and composer.json for composer.

There is the Composer module that integrates Composer with Drush.

I hope that soon .make is going to disappear, replaced by composer.json; for that to come true, some issues need to be resolved, such as version number.

Composer packages are stored in the git repository; you can't use a composer package, but you can download the code. For example, for https://packagist.org/packages/symfony/symfony you can use the following.

libraries[symfony][download][type] = "git"
libraries[symfony][download][url] = " https://github.com/symfony/symfony.git"
libraries[symfony][destination] = "lib/symfony/"

Composer can build stuff recursively; of course, this will not work here.

See http://drush.ws/docs/make.txt.

Their is also https://github.com/composer/installers than can do the invert (install drupal module with composer).

share|improve this answer
    
Is that meant to say my question cannot be answered? (Yes, composer files for drush sounds like an interesting feature) –  Letharion Jan 4 '13 at 8:29
    
Yes it can't be answered. It will make no sens to "port" composer into drush make (at least for my point of view). I edited my answer to give some kind of workaround. –  gagarine Jan 4 '13 at 13:03
1  
Actually, (ab)using the libraries syntax seems like an entirely valid workaround. +1. –  Letharion Jan 4 '13 at 13:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.