title: How to exclude or ignore package pre-releases with setuptools?
body: <p>I was using setuptools with a <code>tensorflow</code> package dependency. I noticed when I run <code>setup.py install</code>, it finds <code>tensorflow 1.13.0rc2</code>. When I run with <code>pip</code>, it finds <code>tensorflow 1.12</code>.</p>
  
  <p>Then I found <a href="https://github.com/pypa/setuptools/issues/855" rel="noreferrer">this ticket</a> which seems to indicate that <code>setuptools</code> includes package pre-releases (i.e. release candidates, RCs), whereas <code>pip</code> does not unless you specify the <code>--pre</code> argument. </p>
  
  <p><strong>I was wondering if anyone had any tips on how to exclude pre-releases from <code>setuptools</code> so that <code>python setup.py install</code> won't pull them in.</strong></p>