title: templating in conda package for name of package or entrypoint not working
body: <p>To build a conda package the meta.yaml file is required which lists i.e. the name of the package, version and entry point and specifies how to build the package.</p>
  <p>Also, it supports jinja2-based templating for most parts of the yaml file.</p>
  <p>How can I get it to load the package name as well as the entrypoint from a setup.py file?</p>
  <p>Given a setup.py file with the following contents:</p>
  <pre><code>#!/usr/bin/env python
  
  &quot;&quot;&quot;The setup script.&quot;&quot;&quot;
  
  from setuptools import setup, find_packages
  
  
  setup(
      entry_points={
          'console_scripts': [
              'foo=foo.cli:main',
          ],
      },
      name='foo',
      packages=find_packages(include=['foo', 'foo.*']),
  )
  </code></pre>
  <p>And a meta.yaml of:</p>
  <pre><code>{% set data = load_setup_py_data() %}
  name: &quot;{{ data['name'] }}&quot;
  </code></pre>
  <p>Why does a conda build of the package fail with:</p>
  <pre><code>Error: package/name missing in: '/path/to/conda.recipe/meta.yaml'
  </code></pre>
  <p>Or for a meta.yaml of:</p>
  <pre><code>entry_points:
        - &quot;{{ data['entry_points']['console_scripts'] }}&quot;
  
  fail with:
  conda_build/build.py&quot;, line 1217, in get_entry_point_script_names
      cmd = entry_point[:entry_point.find(&quot;=&quot;)].strip()
  AttributeError: 'NoneType' object has no attribute 'find'
  </code></pre>