title: Pants includes OS X specific Python wheels
body: <p><strong>TLDR</strong>: Pants fetches OS X specific wheels bc I'm developing on Mac. How can I avoid this, or specify that I will deploy to Ubuntu?</p>
  
  <p><strong>Full story</strong>:</p>
  
  <p>Trying to package a Python application with Pants. Going great so far, but ran into a problem which I've been stuck at for a while. I'm developing on a macbook but deploying to EC2 Ubuntu.</p>
  
  <p>Here's what I've done so far:</p>
  
  <ol>
  <li>Created virtualenv.</li>
  <li>Added BUILD files to applications, with the <a href="https://pantsbuild.github.io/3rdparty_py.html" rel="noreferrer">suggested 3rd party pattern</a> for third party packages.</li>
  <li>Ran <code>./pants run.py backend:admin_server</code> which runs fine and generated <code>dist/admin_server.pex</code></li>
  <li>Scp that .pex onto a fresh EC2 Ubuntu box.</li>
  </ol>
  
  <p>However when I run the application there, I get:</p>
  
  <pre><code>Failed to execute PEX file, missing compatible dependencies for:
      mysql-python
      pycrypto
  </code></pre>
  
  <p>The problem seems to be that Pants takes OS X specific wheels for these 2:</p>
  
  <p>pex:   - MySQL_python-1.2.5-cp27-none-macosx_10_11_intel.whl
  pex:   - pycrypto-2.6.1-cp27-none-macosx_10_11_intel.whl</p>
  
  <p>How can I avoid that, or specify which OS they should run on?</p>
  
  <p>Here's the full output:</p>
  
  <pre><code>ubuntu@ip-***:~$ export PEX_VERBOSE=1
  ubuntu@ip-***:~$ python admin_server.pex
  pex: Found site-library: /usr/local/lib/python2.7/dist-packages
  pex: Found site-library: /usr/lib/python2.7/dist-packages
  pex: Tainted path element: /usr/local/lib/python2.7/dist-packages
  pex: Tainted path element: /usr/lib/python2.7/dist-packages
  pex: Scrubbing from site-packages: /usr/local/lib/python2.7/dist-packages
  pex: Scrubbing from site-packages: /usr/lib/python2.7/dist-packages
  pex: Scrubbing from user site: /home/ubuntu/.local/lib/python2.7/site-packages
  pex: Failed to resolve a requirement: MySQL-python==1.2.5
  pex: Failed to resolve a requirement: pycrypto==2.6.1
  pex: Unresolved requirements:
  pex:   - mysql-python
  pex:   - pycrypto
  pex: Distributions contained within this pex:
  pex:   - six-1.10.0-py2.py3-none-any.whl
  pex:   - protobuf-2.6.1-py2.7.egg
  pex:   - setuptools-19.5-py2.py3-none-any.whl
  pex:   - MySQL_python-1.2.5-cp27-none-macosx_10_11_intel.whl
  pex:   - pycrypto-2.6.1-cp27-none-macosx_10_11_intel.whl
  pex:   - futures-3.0.4-py2-none-any.whl
  pex:   - webapp2-2.5.2-py2-none-any.whl
  pex:   - requests-2.9.0-py2.py3-none-any.whl
  pex:   - jmespath-0.9.0-py2.py3-none-any.whl
  pex:   - beautifulsoup4-4.4.1-py2-none-any.whl
  pex:   - python_dateutil-2.4.2-py2.py3-none-any.whl
  pex:   - boto3-1.2.3-py2.py3-none-any.whl
  pex:   - WebOb-1.5.1-py2.py3-none-any.whl
  pex:   - cssutils-1.0.1-py2-none-any.whl
  pex:   - webapp2_static-0.1-py2-none-any.whl
  pex:   - Paste-2.0.2-py2-none-any.whl
  pex:   - docutils-0.12-py2-none-any.whl
  pex:   - botocore-1.3.22-py2.py3-none-any.whl
  pex:   - protobuf_to_dict-0.1.0-py2-none-any.whl
  Failed to execute PEX file, missing compatible dependencies for:
  mysql-python
  pycrypto
  </code></pre>
  
  <p>PS: to make sure I didn't include my versions of the python libraries, I pip uninstalled both PyCrypto and MySQL-Python.</p>