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

[Enhancement ?] how to request plugin install with 'dist' arg? #8

Open
csoeller opened this issue Nov 18, 2020 · 0 comments
Open

[Enhancement ?] how to request plugin install with 'dist' arg? #8

csoeller opened this issue Nov 18, 2020 · 0 comments

Comments

@csoeller
Copy link

The way to post-install plugins into the PYME.config dirs is great. Now install_plugins.py takes a 'dist' argument which is required for 'all users' installs, however I think this cannot be passed with the develop and install targets?

I believe the current function does not allow any way to get the dist argument used?

def install_pyme_plugin():
    import sys
    import subprocess
    import os
    plugin_install_path = os.path.join(os.path.dirname(__file__), PACKAGE_NAME,
                                       'install_plugin.py')
    subprocess.Popen('%s %s' % (sys.executable, plugin_install_path), 
                        shell=True)

Any good solution that comes to mind?

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

No branches or pull requests

1 participant