configuring remote interpreter with SCL

We have a bit of unusual environment. Due to software compatibility restriction, we have to use "scl" to run python command.

For example, to run python command I type in:
shell> scl enable python27 'python –version'
Python 2.7.5

When I start the server on command line, I do this:
shell> scl enable python27 'python manage.py runserver 0.0.0.0:8000'

However, I don't think I can configure the pycharm IDE to use commands like above.  I would like you use the IDE to debug, specifically.

Thanks
1 comment
Comment actions Permalink

While this was an old post its the only one coming up for configuring SCL with PyCharm. If anyone is using RHEL7 for development (i.e. https://developers.redhat.com/blog/2016/03/31/no-cost-rhel-developer-subscription-now-available/) you can do something like:  

Enable Repos

subscription-manager repos --enable=rhel-server-rhscl-7-rpms
subscription-manager repos --enable=rhel-7-server-extras-rpms
subscription-manager repos --enable=rhel-7-server-optional-rpms

Install Python 3.6

sudo yum install rh-python36

PyCharm 

Then in PyCharm, you need to add a new Python Project Interpreter but pointing to the path of the SCL installation which will be something like:  

/opt/rh/rh-python36/root/bin/python
0

Please sign in to leave a comment.