Search code examples
apache-superset

Where are source code of superset when I install it in virtual environment?


I have been struggling to find the source code of superset package when I install it in virtual environment. I followed superset installation guide and then proceeded via virtual env. Here are my virtual environment files:

enter image description here

I thought it will be in site-packages and so I navigated there also but found this (for both lib and lib64 folder): enter image description here Similarly for lib64: enter image description here Unlike the github file, there's no superset-frontend for customization as well. Does anyone know where can we locate these superset files?


Solution

  • You probably have the compiled version, a binary file, as follows: venv/bin/superset. So when you use superset, it runs an optimized executable. The source files are at venv/lib/python3.6/site-packages/superset/. The pip install apache-superset route is a quick out-of-the-box version of the install, it's not meant for customizing, so you'll change stuff but you won't see it reflected.

    If you want to customize superset you have to clone the github repo and follow these instructions for installation, which involve installing superset in editable mode! They explain how to install and run the frontend for dev work too. Don't skip the OS Dependencies part, I did the first time I installed it and you'll waste time at the long run!