Removing extra files from package
authorFrederic Massart <fred@moodle.com>
Wed, 23 Jul 2014 01:51:24 +0000 (09:51 +0800)
committerFrederic Massart <fred@moodle.com>
Wed, 23 Jul 2014 01:57:09 +0000 (09:57 +0800)
After trying hard to add the extra files in a standard location
I am giving up. It seems pretty difficult to predict where the files
will end up on different systems, especially due to the inconsistencies
between an installation using setup.py vs. pip.

MANIFEST.in
setup.py

index d0bb4b0..87647da 100644 (file)
@@ -2,4 +2,3 @@ include *.txt
 include *.md
 include mdk/config-dist.json
 include mdk/scripts/*
-include extra/*
\ No newline at end of file
index 9279ca8..3fdf245 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -43,12 +43,7 @@ scripts = []
 for f in os.listdir(os.path.join(os.path.dirname(__file__), 'mdk', 'scripts')):
     if f == 'README.rst':
         continue
-    scripts.append('mdk/scripts/%s' % (f))
-
-# Get the content of the extra folder.
-tools = []
-for f in os.listdir(os.path.join(os.path.dirname(__file__), 'extra')):
-    tools.append('extra/%s' % (f))
+    scripts.append('scripts/%s' % (f))
 
 setup(
     name='moodle-sdk',
@@ -75,12 +70,8 @@ setup(
     keywords='mdk moodle moodle-sdk',
 
     packages=find_packages(),
-    package_data={'mdk': ['config-dist.json']},
+    package_data={'mdk': ['config-dist.json'] + scripts},
     install_requires=requirements,
-    data_files=[
-        ('scripts', scripts),
-        ('tools', tools)
-    ],
     include_package_data=True,
 
     entry_points={