Repository: conda-forge/conda-smithy

Issue:
feedstock_content not found
Is the following error message because  the  `feedstock_content/` dir is not installed anywhere and I am running outside of the conda-smithy dir?

``` console
scopatz@athenaie ~ $ conda smithy init xonsh/recipe --feedstock-directory xonsh-feedstock
Traceback (most recent call last):
  File "/home/scopatz/.local/bin/conda-smithy", line 4, in <module>
    __import__('pkg_resources').run_script('conda-smithy==0.1.0.dev0', 'conda-smithy')
  File "/home/scopatz/miniconda3/lib/python3.4/site-packages/setuptools-18.0.1-py3.4.egg/pkg_resources/__init__.py", line 735, in run_script
  File "/home/scopatz/miniconda3/lib/python3.4/site-packages/setuptools-18.0.1-py3.4.egg/pkg_resources/__init__.py", line 1652, in run_script
  File "/home/scopatz/.local/lib/python3.4/site-packages/conda_smithy-0.1.0.dev0-py3.4.egg/EGG-INFO/scripts/conda-smithy", line 161, in <module>
    args.subcommand_func(args)
  File "/home/scopatz/.local/lib/python3.4/site-packages/conda_smithy-0.1.0.dev0-py3.4.egg/EGG-INFO/scripts/conda-smithy", line 64, in __call__
    generate_feedstock_content(feedstock_directory, args.recipe_directory)
  File "/home/scopatz/.local/lib/python3.4/site-packages/conda_smithy-0.1.0.dev0-py3.4.egg/EGG-INFO/scripts/conda-smithy", line 24, in generate_feedstock_content
    configure_feedstock.main(target_directory)
  File "/home/scopatz/.local/lib/python3.4/site-packages/conda_smithy-0.1.0.dev0-py3.4.egg/conda_smithy/configure_feedstock.py", line 179, in main
    copy_feedstock_content(forge_dir)
  File "/home/scopatz/.local/lib/python3.4/site-packages/conda_smithy-0.1.0.dev0-py3.4.egg/conda_smithy/configure_feedstock.py", line 77, in copy_feedstock_content
    copytree(feedstock_content, forge_dir, 'README')
  File "/home/scopatz/.local/lib/python3.4/site-packages/conda_smithy-0.1.0.dev0-py3.4.egg/conda_smithy/configure_feedstock.py", line 61, in copytree
    for item in os.listdir(src):
FileNotFoundError: [Errno 2] No such file or directory: '/home/scopatz/.local/lib/python3.4/site-packages/conda_smithy-0.1.0.dev0-py3.4.egg/feedstock_content'
scopatz@athenaie ~ $ ls xonsh-feedstock/
conda-forge.yml  recipe
```



Discussion:
Yeah. I'd guess the content isn't being installed with the package. Ironically, I try to avoid setup.py stuff as much as possible... :wink: 
I suspect the content needs to be listed in the manifest for this to work.

I think that I know how to do this. 


Resolving patch:
diff --git a/conda_smithy/configure_feedstock.py b/conda_smithy/configure_feedstock.py
--- a/conda_smithy/configure_feedstock.py
+++ b/conda_smithy/configure_feedstock.py
@@ -12,7 +12,7 @@
 
 __version__ = '0.1.0'
 
-conda_forge_content = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+conda_forge_content = os.path.abspath(os.path.dirname(__file__))
 
 
 def about_template():
diff --git a/feedstock_content/ci_support/upload_or_check_non_existence.py b/conda_smithy/feedstock_content/ci_support/upload_or_check_non_existence.py
similarity index 100%
rename from feedstock_content/ci_support/upload_or_check_non_existence.py
rename to conda_smithy/feedstock_content/ci_support/upload_or_check_non_existence.py
diff --git a/setup.py b/setup.py
old mode 100644
new mode 100755
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,8 @@
-from setuptools import setup
+#!/usr/bin/env python
 import os.path
 
+from setuptools import setup
+
 
 tl_package = 'obvci'
 vn_context, vn_fname = {}, os.path.join(tl_package, '_version.py')
@@ -12,14 +14,35 @@
     version = 'dev'
 
 
-if __name__ == '__main__':
-    setup(name='conda-smithy',
-          version='0.1.0dev0',
-          description='A package to create repositories for conda recipes, and automate their building with CI tools on Linux, OSX and Windows.',
-          author='Phil Elson',
-          author_email='pelson.pub@gmail.com',
-          url='https://github.com/conda-forge/conda-smithy',
-          scripts=[os.path.join('scripts', 'conda-smithy')],
-          packages=['conda_smithy'],
-         )
+def main():
+    skw = dict(
+        name='conda-smithy',
+        version='0.1.0dev0',
+        description='A package to create repositories for conda recipes, and automate '
+                    'their building with CI tools on Linux, OSX and Windows.',
+        author='Phil Elson',
+        author_email='pelson.pub@gmail.com',
+        url='https://github.com/conda-forge/conda-smithy',
+        scripts=[os.path.join('scripts', 'conda-smithy')],
+        packages=['conda_smithy', 
+                  'conda_smithy.feedstock_content', 
+                  'conda_smithy.feedstock_content.ci_support',
+                  'conda_smithy.templates', 
+                  ],
+        package_dir={'conda_smithy': 'conda_smithy', 
+                     'conda_smithy.feedstock_content': 'conda_smithy/feedstock_content', 
+                     'conda_smithy.feedstock_content.ci_support': 
+                        'conda_smithy/feedstock_content/ci_support', 
+                     'conda_smithy.templates': 'conda_smithy/templates', 
+                     },
+        package_data={'conda_smithy.feedstock_content': ['README', '*.*'],
+                      'conda_smithy.feedstock_content.ci_support': ['*'],
+                      'conda_smithy.templates': ['*'],
+                      },
+        zip_safe=False,
+        )
+    setup(**skw)
+
 
+if __name__ == '__main__':
+    main()
\ No newline at end of file


Test patch: