summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2016-08-13 16:59:55 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2016-08-13 16:59:55 +0200
commitbd4490e2772ff80149dc9236873cfcbf1cb3f846 (patch)
treee08b232c3e346efaff4a549b855fae1feb919b47 /doc
parentfa3a35b241def2f837d72b5de736c513d6856cf9 (diff)
parent79149ac12d5009169900f027de2633a843e614f0 (diff)
downloadnixpkgs-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar
nixpkgs-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.gz
nixpkgs-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.bz2
nixpkgs-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.lz
nixpkgs-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.xz
nixpkgs-bd4490e2772ff80149dc9236873cfcbf1cb3f846.tar.zst
nixpkgs-bd4490e2772ff80149dc9236873cfcbf1cb3f846.zip
Merge branch 'master' into hardened-stdenv
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/go.xml21
-rw-r--r--doc/languages-frameworks/python.md17
2 files changed, 17 insertions, 21 deletions
diff --git a/doc/languages-frameworks/go.xml b/doc/languages-frameworks/go.xml
index 7365f5abe68..e56d7dd389d 100644
--- a/doc/languages-frameworks/go.xml
+++ b/doc/languages-frameworks/go.xml
@@ -86,13 +86,6 @@ the following arguments are of special significance to the function:
           "rev": "a83829b6f1293c91addabc89d0571c246397bbf4",
           "sha256": "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh"
         }
-    },
-    {
-    "include": "../../libs.json", <co xml:id='ex-goDeps-4' />
-    "packages": [ <co xml:id='ex-goDeps-5' />
-            "github.com/docopt/docopt-go",
-            "golang.org/x/crypto",
-        ]
     }
 ]
 </programlisting>
@@ -122,20 +115,6 @@ the following arguments are of special significance to the function:
     </para>
   </callout>
 
-  <callout arearefs='ex-goDeps-4'>
-    <para>
-      <varname>include</varname> could be used to reuse <varname>goDeps</varname> between Go programs.
-      There is a common libs set in <varname>&lt;nixpkgs/pkgs/development/go-modules/libs.json&gt;</varname>
-      with pinned versions of many packages that you can reuse.
-    </para>
-  </callout>
-
-  <callout arearefs='ex-goDeps-5'>
-    <para>
-      <varname>packages</varname> enumerates all Go packages that will be imported from included file.
-    </para>
-  </callout>
-
 </calloutlist>
 
 </para>
diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md
index 99fb6774b82..9bce4980517 100644
--- a/doc/languages-frameworks/python.md
+++ b/doc/languages-frameworks/python.md
@@ -748,6 +748,23 @@ in newpkgs.python35.withPackages (ps: [ps.blaze])
 ```
 The requested package `blaze` depends upon `pandas` which itself depends on `scipy`.
 
+### `python setup.py bdist_wheel` cannot create .whl
+
+Executing `python setup.py bdist_wheel` fails with
+```
+ValueError: ZIP does not support timestamps before 1980
+```
+This is because files are included that depend on items in the Nix store which have a timestamp of, that is, it corresponds to January the 1st, 1970 at 00:00:00. And as the error informs you, ZIP does not support that.
+Fortunately `bdist_wheel` takes into account `SOURCE_DATE_EPOCH`. On Nix this value is set to 1. By setting it to a value correspond to 1980 or later it is possible to build wheels.
+
+Use 1980 as timestamp:
+```
+SOURCE_DATE_EPOCH=315532800 python3 setup.py bdist_wheel
+```
+or the current time:
+```
+SOURCE_DATE_EPOCH=$(date +%s) python3 setup.py bdist_wheel
+```
 
 ### `install_data` / `data_files` problems