Skip to content
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

Plugin deps (Fix #2533) #2541

Merged
merged 5 commits into from Oct 20, 2016
Merged

Plugin deps (Fix #2533) #2541

merged 5 commits into from Oct 20, 2016

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented Oct 19, 2016

This fixes #2533


req_plug_path = os.path.join(dest_path, 'requirements-plugins.txt')
if os.path.exists(req_plug_path):
LOGGER.notice('This plugin requires other nikola plugins.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nikola*

try:
with io.open(req_plug_path, 'r', encoding='utf-8') as inf:
for plugname in inf.readlines():
subprocess.check_call((sys.executable, '-m', 'nikola', 'plugin', '-i', reqpath))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can’t we just call do_install here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe.

@Kwpolska Kwpolska merged commit 5ee1a3a into master Oct 20, 2016
@Kwpolska Kwpolska deleted the plugin-deps branch October 20, 2016 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin dependencies
2 participants