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

@Kwpolska Kwpolska Oct 19, 2016

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

@Kwpolska Kwpolska Oct 19, 2016

Can’t we just call do_install here?

Copy link
Member Author

@ralsina ralsina Oct 20, 2016

Maybe.

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

Successfully merging this pull request may close these issues.

2 participants