{"action":"opened","issue":{"url":"https://api.github.com/repos/Z3Prover/z3/issues/365","labels_url":"https://api.github.com/repos/Z3Prover/z3/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/Z3Prover/z3/issues/365/comments","events_url":"https://api.github.com/repos/Z3Prover/z3/issues/365/events","html_url":"https://github.com/Z3Prover/z3/issues/365","id":121304104,"number":365,"title":"mk_unix_dist.py is kind of pointless","user":{"login":"delcypher","id":511795,"avatar_url":"https://avatars.githubusercontent.com/u/511795?v=3","gravatar_id":"","url":"https://api.github.com/users/delcypher","html_url":"https://github.com/delcypher","followers_url":"https://api.github.com/users/delcypher/followers","following_url":"https://api.github.com/users/delcypher/following{/other_user}","gists_url":"https://api.github.com/users/delcypher/gists{/gist_id}","starred_url":"https://api.github.com/users/delcypher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delcypher/subscriptions","organizations_url":"https://api.github.com/users/delcypher/orgs","repos_url":"https://api.github.com/users/delcypher/repos","events_url":"https://api.github.com/users/delcypher/events{/privacy}","received_events_url":"https://api.github.com/users/delcypher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T18:00:22Z","updated_at":"2015-12-09T18:00:22Z","closed_at":null,"body":"The proper way to build a distributable tarball is to do something like\r\n\r\n```\r\n$ python scripts/mk_make.py <flags to enable bindings>\r\n$ cd build\r\n$ make\r\n$ mkdir staged\r\n$ make DESTDIR=`readlink -f staged` install\r\n$ tar -C staged -czvf z3.tar.gz .\r\n```\r\n\r\nThe newly added ``DESTDIR`` support makes a lot of the existing python code ``mk_unix_dist()`` a bit pointless because now creating a distributable is basically the same as doing a staged install but then tarballing the result."}}