Parcourir la source

fix for installing via setuptools

Miroslav Shubernetskiy il y a 11 ans
Parent
commit
62cfa34155
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      setup.py

+ 5 - 1
setup.py

@@ -28,7 +28,11 @@ def get_package_data(package):
     for base, filenames in walk:
         filepaths.extend([os.path.join(base, filename)
                           for filename in filenames])
-    return {package: filepaths}
+
+    if filepaths:
+        return {package: filepaths}
+    else:
+        return None
 
 
 def read(fname):