Sfoglia il codice sorgente

fix for installing via setuptools

Miroslav Shubernetskiy 11 anni fa
parent
commit
62cfa34155
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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):