title: How to cross-platform install a package pipenv, method depending on the platform?
body: <p>I'm trying to install the <a href="https://pypi.org/project/Shapely/" rel="nofollow noreferrer">Shapely</a> package to a cross-platform project using pipenv. However, on Windows, shapely can't be installed using a simple <code>pipenv install shapely</code>, it throws errors for a missing dependent dll. For this purpose, there is a pre-built wheel available from the famous <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely" rel="nofollow noreferrer">unofficial package wheels</a> by Christoph Gohlke:</p>
  
  <pre><code>[[source]]
  url = "https://pypi.org/simple"
  verify_ssl = true
  name = "pypi"
  
  [packages]
  shapely = {file = "https://download.lfd.uci.edu/pythonlibs/n5jyqt7p/Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl", sys_platform = "== 'win32'"}
  
  [dev-packages]
  
  [requires]
  python_version = "3.7"
  </code></pre>
  
  <p>This wheel is perfect for Windows, but only for Windows. So how do I specify in a Pipfile that, <em>only</em> if the platform is linux, it can simply <code>pipenv install shapely</code> as:</p>
  
  <pre><code>[[source]]
  url = "https://pypi.org/simple"
  verify_ssl = true
  name = "pypi"
  
  [packages]
  shapely = "==1.6.4.post2"
  
  [dev-packages]
  
  [requires]
  python_version = "3.7"
  </code></pre>
  
  <p>or is this not possible using pipenv? Or do I hack together a <code>Pipfile.Windows</code> file that my unfortunate Windows colleague can rename to <code>Pipfile</code>?</p>
  
  <p>Many thanks for any pointers.</p>