title: Add a pypi python package to buildroot
body: <p>I'm trying to integrate python3-functionfs module into buildroot.
  I'm able to select it with <code>make menuconfig</code> but when I'm running <code>make</code> the package isn't even downloaded.</p>
  
  <p>The package is available here : <a href="https://pypi.python.org/pypi/functionfs/" rel="nofollow noreferrer">functionfs-0.3 pypi page</a> <br/>
  And the download url here : <a href="https://pypi.python.org/packages/e3/2d/56e0d9ffe0da7c116a6724ee538375689dd59e34dbe1676edf6b66b52be4/functionfs-0.3.tar.gz#md5=4beefbdda13990d7bf4d2d16ba07bb2c" rel="nofollow noreferrer">functionfs-0.3 download link</a> <br/>
  There is also the github repo here : <a href="https://github.com/vpelletier/python-functionfs" rel="nofollow noreferrer">functionfs git repository</a>
  I'm using Buildroot 2017.02 version.</p>
  
  <p>Here is my Config.in file :</p>
  
  <pre><code>config BR2_PACKAGE_PYTHON3_FUNCTIONFS
      bool "python3-functionfs"
      depends on BR2_PACKAGE_PYTHON3
      help
          Pythonic API for linux’s functionfs.
          functionfs is part of the usb gadget subsystem. Together with usb_gadget’s configfs integration, allows userland to declare and implement an USB device.
  
      https://pypi.python.org/pypi/functionfs
  </code></pre>
  
  <p>And here is my .mk file : </p>
  
  <pre><code>################################################################################
  #
  # python3-functionfs
  #
  ################################################################################
  
  PYTHON_FUNCTIONFS_VERSION = 0.3
  PYTHON_FUNCTIONFS_SOURCE = functionfs-$(PYTHON_FUNCTIONFS_VERSION).tar.gz
  PYTHON_FUNCTIONFS_SITE = https://pypi.python.org/packages/e3/2d/56e0d9ffe0da7c116a6724ee538375689dd59e34dbe1676edf6b66b52be4
  PYTHON_FUNCTIONFS_LICENSE = GPLv3+
  PYTHON_FUNCTIONFS_LICENSE_FILE = COPYING
  PYTHON_FUNCTIONFS_SETUP_TYPE = setuptools
  
  $(eval $(python-package))
  </code></pre>
  
  <hr>
  
  <p>The documentation also mentions at <strong>17.8.3. Generating a python-package from a PyPI repository</strong></p>
  
  <blockquote>
    <p>If the Python package for which you would like to create a Buildroot
    package is available on PyPI, you may want to use the scanpypi tool
    located in utils/ to automate the process.</p>
    
    <p>You can find the list of existing PyPI packages here.</p>
    
    <p>scanpypi requires Python’s setuptools package to be installed on your
    host.</p>
    
    <p>When at the root of your buildroot directory just do :</p>
    
    <p><code>utils/scanpypi foo bar -o package</code></p>
    
    <p>This will generate packages python-foo and python-bar in the package
    folder if they exist on <a href="https://pypi.python.org" rel="nofollow noreferrer">https://pypi.python.org</a>.</p>
    
    <p>Find the external python modules menu and insert your package inside.
    Keep in mind that the items inside a menu should be in alphabetical
    order.</p>
    
    <p>Please keep in mind that you’ll most likely have to manually check the
    package for any mistakes as there are things that cannot be guessed by
    the generator (e.g. dependencies on any of the python core modules
    such as BR2_PACKAGE_PYTHON_ZLIB). Also, please take note that the
    license and license files are guessed and must be checked. You also
    need to manually add the package to the package/Config.in file.</p>
    
    <p>If your Buildroot package is not in the official Buildroot tree but in
    a br2-external tree, use the -o flag as follows:</p>
    
    <p><code>utils/scanpypi foo bar -o other_package_dir</code></p>
    
    <p>This will generate packages python-foo and python-bar in the
    other_package_directory instead of package.</p>
    
    <p>Option -h will list the available options:</p>
    
    <p><code>utils/scanpypi -h</code></p>
  </blockquote>
  
  <p>However I don't have an <code>util/</code> folder in buildroot main directory.
  The script is located at <code>support/scripts/scanpypi</code> but when I'm running it I have the following error :</p>
  
  <pre><code>$ support/scripts/scanpypi functionfs -o package
  Traceback (most recent call last):
    File "support/scripts/scanpypi", line 47, in &lt;module&gt;
      import setuptools
    File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 11, in &lt;module&gt;
      from setuptools.extern.six.moves import filterfalse, map
    File "/usr/local/lib/python2.7/dist-packages/setuptools/extern/__init__.py", line 1, in &lt;module&gt;
      from pkg_resources.extern import VendorImporter
    File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 40, in &lt;module&gt;
      from pkgutil import get_importer
  ImportError: cannot import name get_importer
  </code></pre>
  
  <p>This can be solved by renaming both <code>support/scripts/pkgutil.py</code> and <code>support/scripts/pkgutil.pyc</code>.</p>
  
  <p>However I would like to understand what's going on when I'm trying to create the package by myself and it doesn't download. </p>
  
  <hr>
  
  <p>Does someone know why functionfs-0.3.tar.gz is not downloaded when running make ?</p>