title: Run bash script with pip install
body: <p>I have created a wrapper for <code>c++</code> library using <code>python</code>. </p>
  
  <p>I have a <code>bash</code> script that will download <code>c++</code> code, compile it and copy the generated <code>.so</code> file to the python package. <br>
  Then I have written the <code>setup.py</code> so that when you use <code>pip install package-name</code>, it will install the <code>.so</code> file also.</p>
  
  <p>What I need is to run that <code>bash</code> script when I type <code>pip install package-name</code>. Currently what I have to do is run the <code>bash</code> script first and then use <code>pip install package-name</code> to install.</p>
  
  <p>And I need to upload the code to the <a href="https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives" rel="nofollow noreferrer"><em>Python Package Index</em></a>. So the solution has to be compatible with that also*.</p>
  
  <p>PS: I know about the <code>Extension</code> module in <code>setuptools</code>. I can't use that because I need to download something and run a <code>Makefile</code> after editing it. I do all of that with the <code>bash</code> script.</p>
  
  <p><strong>*</strong> I learnt that this requirement is not possible. So please ignore that one.</p>
  
  <p>Thank you..</p>