mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-08 19:43:48 -05:00
Compare commits
1119 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fab6a0fcd1 | ||
|
|
c4968f7a48 | ||
|
|
d0e9cd7d7e | ||
|
|
3185dee8a2 | ||
|
|
05615587d0 | ||
|
|
132179d0ca | ||
|
|
b6cdfcf5dc | ||
|
|
c78f079078 | ||
|
|
2767461235 | ||
|
|
20432dda88 | ||
|
|
f27e3ebb94 | ||
|
|
7718afbca2 | ||
|
|
28766056b2 | ||
|
|
dbf8b2fb65 | ||
|
|
aaec35859d | ||
|
|
54f7944ae2 | ||
|
|
96bfa1532d | ||
|
|
ebd6c1aee3 | ||
|
|
a8f8f0ae0c | ||
|
|
a50d0492b3 | ||
|
|
a6dbb11dca | ||
|
|
43abe13db9 | ||
|
|
465bd1f3e8 | ||
|
|
96be89835e | ||
|
|
3428431aef | ||
|
|
8841f7788d | ||
|
|
8da3749648 | ||
|
|
94bce8abf8 | ||
|
|
f62ee1a4db | ||
|
|
e7b0d99601 | ||
|
|
5fb9c84e14 | ||
|
|
d138f5f5e4 | ||
|
|
3ddedc021a | ||
|
|
a22adc77eb | ||
|
|
a3ff3adc39 | ||
|
|
2dcb9d0611 | ||
|
|
a6cb4b6317 | ||
|
|
2f917312f1 | ||
|
|
d1f8081d1c | ||
|
|
63671a1479 | ||
|
|
d7ca2aba2a | ||
|
|
2c4dd63f77 | ||
|
|
06e4f1b682 | ||
|
|
825de5d2e3 | ||
|
|
6e3dd80f15 | ||
|
|
d5a5cd1aae | ||
|
|
195942f22e | ||
|
|
daaa1aab6d | ||
|
|
8f87f43e22 | ||
|
|
c30e096a54 | ||
|
|
3405c4d03c | ||
|
|
09b18cf6f5 | ||
|
|
fcedf169fb | ||
|
|
14655a43c8 | ||
|
|
8c3cab61c7 | ||
|
|
6296bf3f8b | ||
|
|
9ca7de5b6c | ||
|
|
3d1c38f1a8 | ||
|
|
12ad6f670b | ||
|
|
9163c46568 | ||
|
|
204ded5a55 | ||
|
|
3937dc3618 | ||
|
|
8f25eabbbc | ||
|
|
cb65df8bec | ||
|
|
0daf04a71b | ||
|
|
52544e6956 | ||
|
|
39a6b097f7 | ||
|
|
f19ab5fea2 | ||
|
|
6c3dd0a24f | ||
|
|
c18a3f9042 | ||
|
|
f6c1e5220a | ||
|
|
d740406daf | ||
|
|
7026e529c7 | ||
|
|
e80886e9be | ||
|
|
6e02b944f7 | ||
|
|
bb129a782b | ||
|
|
d508822f9a | ||
|
|
6913fee89a | ||
|
|
074161f9c1 | ||
|
|
2b0f16757a | ||
|
|
7b289bcee6 | ||
|
|
8dcd715ede | ||
|
|
dcca61c0bc | ||
|
|
155012911c | ||
|
|
bdfe6d383f | ||
|
|
efdba2d76b | ||
|
|
0f44c57d08 | ||
|
|
efb187f26f | ||
|
|
c101052a7f | ||
|
|
51a1ee06e4 | ||
|
|
8a0555f8ef | ||
|
|
55f692ba9c | ||
|
|
3a265c1af9 | ||
|
|
c43928a8e4 | ||
|
|
c6cf4e18b8 | ||
|
|
19c02bf39c | ||
|
|
d462e158e2 | ||
|
|
3ecc94fa38 | ||
|
|
53bc95314c | ||
|
|
db325cc66d | ||
|
|
28c40ece8d | ||
|
|
34f938fdb9 | ||
|
|
e034c80388 | ||
|
|
948d1f4ca7 | ||
|
|
438e828eb5 | ||
|
|
e52ed97fff | ||
|
|
43eb33e929 | ||
|
|
10ab381fb6 | ||
|
|
c452da8084 | ||
|
|
e6090f00f3 | ||
|
|
9e664b5d27 | ||
|
|
6868d3053a | ||
|
|
10d3123caa | ||
|
|
2d16c638e9 | ||
|
|
3ae068b492 | ||
|
|
824f7e6b21 | ||
|
|
5d247793e6 | ||
|
|
ed700c0185 | ||
|
|
193e64b6b2 | ||
|
|
5ba585769b | ||
|
|
5540e235ab | ||
|
|
c9268bb0dc | ||
|
|
5ddc14704c | ||
|
|
5fcb4cf0bf | ||
|
|
0f288f2462 | ||
|
|
0c81c97926 | ||
|
|
5ff089de9c | ||
|
|
459725df3c | ||
|
|
ec3b7d815d | ||
|
|
afe86aef52 | ||
|
|
461ae27a19 | ||
|
|
c0f691fc57 | ||
|
|
ffc899475a | ||
|
|
57d1c9d6be | ||
|
|
9d488c9760 | ||
|
|
3db1ac13d2 | ||
|
|
880fa46156 | ||
|
|
24ad375a35 | ||
|
|
7f32e96c28 | ||
|
|
294738842c | ||
|
|
ce671398f8 | ||
|
|
a3bea25ddc | ||
|
|
1a66a9141b | ||
|
|
78c1d7186d | ||
|
|
9b60d73ec8 | ||
|
|
8a9d2557a0 | ||
|
|
2a79db00b0 | ||
|
|
3e7839c5b7 | ||
|
|
3b6faa8531 | ||
|
|
e3982fae38 | ||
|
|
493f036928 | ||
|
|
af438abeae | ||
|
|
36c5cbf74f | ||
|
|
608ad6f9d0 | ||
|
|
7a6eb38a36 | ||
|
|
cd40335ba4 | ||
|
|
26450fd0ab | ||
|
|
22ecefd572 | ||
|
|
abae52ae20 | ||
|
|
114063495f | ||
|
|
7b797c3797 | ||
|
|
8e276a009e | ||
|
|
4198280142 | ||
|
|
83ac0fbd94 | ||
|
|
46fbc5414a | ||
|
|
43b28caa94 | ||
|
|
5cb9c9af2e | ||
|
|
d6230578ec | ||
|
|
62bf3d9b61 | ||
|
|
55e6e7143a | ||
|
|
1e78acb701 | ||
|
|
648afe05a9 | ||
|
|
9aee57d965 | ||
|
|
ed684c239c | ||
|
|
fe934642c5 | ||
|
|
7c4c1757f7 | ||
|
|
1b066598ce | ||
|
|
cc94ad39f1 | ||
|
|
c754efc44b | ||
|
|
46ffb0c8df | ||
|
|
70cce28ba3 | ||
|
|
9156191168 | ||
|
|
5402ce423b | ||
|
|
2ea2e7558d | ||
|
|
9d8da866f1 | ||
|
|
70fa356585 | ||
|
|
31fb290de2 | ||
|
|
4ea7d0849b | ||
|
|
e285f2e5b1 | ||
|
|
1d31529b46 | ||
|
|
6f40dae3d7 | ||
|
|
d2794f54e5 | ||
|
|
bc03106cee | ||
|
|
bf93b90282 | ||
|
|
7b8bd11416 | ||
|
|
f623231734 | ||
|
|
481198d255 | ||
|
|
50d5de4731 | ||
|
|
15977c852d | ||
|
|
5b9e4f0584 | ||
|
|
10d5d9a24f | ||
|
|
06c1959e78 | ||
|
|
be037932ca | ||
|
|
af95960960 | ||
|
|
17c153b1c1 | ||
|
|
065f5578b1 | ||
|
|
71c9ff565b | ||
|
|
88270e83e8 | ||
|
|
b09681c9fb | ||
|
|
80eef69c9a | ||
|
|
bc025641c2 | ||
|
|
0cd078bae6 | ||
|
|
5dc3ee95fd | ||
|
|
4903223f23 | ||
|
|
1aea75055a | ||
|
|
f30085eaf4 | ||
|
|
43d311ef58 | ||
|
|
239f4a6b51 | ||
|
|
1463968a3f | ||
|
|
97c6a4c932 | ||
|
|
5131ef521b | ||
|
|
1d7ce651b0 | ||
|
|
c335f96eac | ||
|
|
f0eeac63a3 | ||
|
|
4ebe18a273 | ||
|
|
ab2aa6d13b | ||
|
|
431761d125 | ||
|
|
e6e858c33b | ||
|
|
e9aa6cf649 | ||
|
|
7ad01b2b48 | ||
|
|
8c6b764a4c | ||
|
|
4e30b1a5e1 | ||
|
|
2beef3c455 | ||
|
|
797975b742 | ||
|
|
527334b401 | ||
|
|
050f750563 | ||
|
|
292813eca3 | ||
|
|
d935a2a994 | ||
|
|
d9a7117c3b | ||
|
|
6596657004 | ||
|
|
f48a5b11d7 | ||
|
|
4d72eefffc | ||
|
|
b6ac87c220 | ||
|
|
6b908bf39f | ||
|
|
f87d8762eb | ||
|
|
c54fa3731f | ||
|
|
efe461d2b4 | ||
|
|
4540967250 | ||
|
|
d14357f64c | ||
|
|
d6e1de3e2f | ||
|
|
063717e6b5 | ||
|
|
4d0c289287 | ||
|
|
52bb0dcfcf | ||
|
|
5a05788e61 | ||
|
|
48335302d9 | ||
|
|
98953c2e14 | ||
|
|
9ae8ba8a29 | ||
|
|
1a7f49d2f0 | ||
|
|
70c6d3f67e | ||
|
|
9146f44db1 | ||
|
|
b9ae43a9df | ||
|
|
f6a77549eb | ||
|
|
cbd246acff | ||
|
|
9d21169ee0 | ||
|
|
7bceb85067 | ||
|
|
eeb69b1b79 | ||
|
|
b155380a06 | ||
|
|
cd60df52af | ||
|
|
6820704c91 | ||
|
|
8abefe1fcb | ||
|
|
b22fcd9759 | ||
|
|
55341f4436 | ||
|
|
45df273592 | ||
|
|
dbd50e7bd9 | ||
|
|
1c0a5d8264 | ||
|
|
7c7cca8a26 | ||
|
|
123b3af1a0 | ||
|
|
ba9c01ce77 | ||
|
|
7535efe031 | ||
|
|
995da2df89 | ||
|
|
f28b3ee123 | ||
|
|
97b957d5d5 | ||
|
|
fe2412c95d | ||
|
|
5114600c4d | ||
|
|
96d3bd6379 | ||
|
|
e8433cfeb3 | ||
|
|
7f88eabd0b | ||
|
|
d320d74a07 | ||
|
|
fc49f7e21e | ||
|
|
be4f5992d6 | ||
|
|
25a48694be | ||
|
|
9b7b2a6b40 | ||
|
|
f59729359a | ||
|
|
93ac0632c7 | ||
|
|
7a21cf9c10 | ||
|
|
720dee76af | ||
|
|
db6a41c90f | ||
|
|
bfddc69120 | ||
|
|
acce3744e7 | ||
|
|
5ca423c9f3 | ||
|
|
f0e852553a | ||
|
|
fc8597ca38 | ||
|
|
c9a96c9f79 | ||
|
|
e7a68ad467 | ||
|
|
0fd1eaaeb5 | ||
|
|
b986f8f93f | ||
|
|
60e1abe7fa | ||
|
|
afcf4f0c7c | ||
|
|
c0aff27842 | ||
|
|
e172eb2818 | ||
|
|
3a5c2cabb1 | ||
|
|
871ec77795 | ||
|
|
8761ae8f7c | ||
|
|
3d401ebcd2 | ||
|
|
268f965421 | ||
|
|
ff0f8a140b | ||
|
|
6c2d234e55 | ||
|
|
c6dd3b9468 | ||
|
|
8fee82e456 | ||
|
|
7220044b49 | ||
|
|
a797bb6d88 | ||
|
|
665f9d9466 | ||
|
|
cb260fb9d0 | ||
|
|
4f0439cd12 | ||
|
|
2e387816f1 | ||
|
|
ee4182321e | ||
|
|
661a2b29d3 | ||
|
|
8c503c6e75 | ||
|
|
743a637b59 | ||
|
|
7fe78245d8 | ||
|
|
96c0362b53 | ||
|
|
2dae281201 | ||
|
|
4a52bfaff9 | ||
|
|
b26b83a11f | ||
|
|
35aed218cf | ||
|
|
38ab616344 | ||
|
|
7e0e85bdda | ||
|
|
d1a0398fdb | ||
|
|
67f429c41d | ||
|
|
632263568e | ||
|
|
bf39d88d11 | ||
|
|
720870011b | ||
|
|
b2ac5df98d | ||
|
|
d9e772eb6e | ||
|
|
eef8ac2701 | ||
|
|
45b45bcf25 | ||
|
|
ded98e11de | ||
|
|
dc1b5a197f | ||
|
|
07d675350f | ||
|
|
79507fbadf | ||
|
|
de5c61cd59 | ||
|
|
39cde6fc95 | ||
|
|
1381c2ca79 | ||
|
|
89d4e8a0e0 | ||
|
|
a8df5d587c | ||
|
|
e2173df4aa | ||
|
|
e851250da6 | ||
|
|
8e657374a1 | ||
|
|
77bd5bc6c9 | ||
|
|
e82f943174 | ||
|
|
bbf8cb4a95 | ||
|
|
a1df551bcf | ||
|
|
c69d9a1128 | ||
|
|
f4652fbbf0 | ||
|
|
3ee395f9b5 | ||
|
|
e4cbf04592 | ||
|
|
6bb7f07d2d | ||
|
|
51bd975820 | ||
|
|
294cff3fd4 | ||
|
|
a6e0785b84 | ||
|
|
302b317b89 | ||
|
|
8facb3b3a7 | ||
|
|
b5622bee3a | ||
|
|
3f74da0e73 | ||
|
|
68b92a7f5d | ||
|
|
8bac958994 | ||
|
|
5287e2ebf4 | ||
|
|
284588f9b4 | ||
|
|
16c7eb4135 | ||
|
|
9bcef4b875 | ||
|
|
f237a11f4f | ||
|
|
fc41c87395 | ||
|
|
6e02ad2fe4 | ||
|
|
58e24a64a2 | ||
|
|
77d9e34a49 | ||
|
|
d7f4aa02ed | ||
|
|
42bb40a5d8 | ||
|
|
d38f00cd4a | ||
|
|
e9a6a2909c | ||
|
|
5f95ce1835 | ||
|
|
ff995b6654 | ||
|
|
4d15d21f0f | ||
|
|
6790e3e18a | ||
|
|
737e0f1b3f | ||
|
|
ab9ee414ad | ||
|
|
c3a755c853 | ||
|
|
9901c4b84d | ||
|
|
04ce9bcd5c | ||
|
|
4cf93df059 | ||
|
|
a43f7f5341 | ||
|
|
af2cb3f943 | ||
|
|
9b8b9c5205 | ||
|
|
b6aef96cea | ||
|
|
bc6be9ed9f | ||
|
|
2297bd3741 | ||
|
|
8595df4e18 | ||
|
|
200adac02f | ||
|
|
6509d318f4 | ||
|
|
474767618d | ||
|
|
82aaef7842 | ||
|
|
9df0a2916d | ||
|
|
f76309d419 | ||
|
|
29d3df661e | ||
|
|
96b4c0f7e7 | ||
|
|
f9053406c2 | ||
|
|
ae4659538d | ||
|
|
4159055117 | ||
|
|
aa62882347 | ||
|
|
b8a7de8a3c | ||
|
|
a661e14580 | ||
|
|
22f4218522 | ||
|
|
6f761f8159 | ||
|
|
0468ffdd49 | ||
|
|
352c8f49bd | ||
|
|
72eb7f5c32 | ||
|
|
59c796c138 | ||
|
|
a465cb808c | ||
|
|
ade2bf2a0d | ||
|
|
ed133866d7 | ||
|
|
f6a5eb90a1 | ||
|
|
d805ec19ca | ||
|
|
3ba7702602 | ||
|
|
887f2263f0 | ||
|
|
d215804fbe | ||
|
|
6697437d1a | ||
|
|
e9e151c89e | ||
|
|
0880a92a7f | ||
|
|
3169a4894b | ||
|
|
21c0d930e9 | ||
|
|
f470c80e5a | ||
|
|
2b5ee0c425 | ||
|
|
5931001cab | ||
|
|
5c91bc981c | ||
|
|
d496c03497 | ||
|
|
2ec8f0f0a4 | ||
|
|
00596b4b46 | ||
|
|
e9a8adb37f | ||
|
|
6efe6dafe7 | ||
|
|
a01a08c551 | ||
|
|
c2cc649cfa | ||
|
|
9dac275567 | ||
|
|
3290973990 | ||
|
|
13a474c4e9 | ||
|
|
d378b274d9 | ||
|
|
08b0d162b4 | ||
|
|
b9e698305e | ||
|
|
01f2a1d2ca | ||
|
|
4b8146f516 | ||
|
|
5a69204978 | ||
|
|
801b093b67 | ||
|
|
2cca695bed | ||
|
|
67324465fa | ||
|
|
7612f0391d | ||
|
|
21f44a130a | ||
|
|
033529915e | ||
|
|
e77e60206d | ||
|
|
d5506e1404 | ||
|
|
f512496588 | ||
|
|
27d4b9b6d2 | ||
|
|
ef8c8b8ef2 | ||
|
|
5998c4596b | ||
|
|
8851acda13 | ||
|
|
1ceb678e86 | ||
|
|
79e2c96a7e | ||
|
|
fa0442688a | ||
|
|
9e596d641d | ||
|
|
3ab6836c38 | ||
|
|
082c19f5a1 | ||
|
|
3f1a4d0ff9 | ||
|
|
0df94b1097 | ||
|
|
1e2979d101 | ||
|
|
72a480f298 | ||
|
|
9d74383461 | ||
|
|
2e737a80c0 | ||
|
|
d707546912 | ||
|
|
4501d90896 | ||
|
|
149a915770 | ||
|
|
0c81002220 | ||
|
|
fe87e44870 | ||
|
|
fe0b2436b8 | ||
|
|
808527b5d0 | ||
|
|
601ac4b3f3 | ||
|
|
60950d0082 | ||
|
|
cff2c4527d | ||
|
|
10e6dd8c2d | ||
|
|
18ecb4ffbb | ||
|
|
986db22da8 | ||
|
|
07037d9a5d | ||
|
|
8914be846f | ||
|
|
d1f1c4c61c | ||
|
|
6c70e2a997 | ||
|
|
3cde540ca0 | ||
|
|
83e820d869 | ||
|
|
8e60ad8c6d | ||
|
|
a841f42d53 | ||
|
|
08367dbb83 | ||
|
|
6222bb743d | ||
|
|
bce58e9d9a | ||
|
|
d4e6a4c3d3 | ||
|
|
9eef6c536b | ||
|
|
d737ae9f03 | ||
|
|
2da9bfd1f8 | ||
|
|
3136fce0c0 | ||
|
|
cce1960de0 | ||
|
|
6641e291ee | ||
|
|
f5fded3b9d | ||
|
|
cac8fd7f60 | ||
|
|
b55830fb01 | ||
|
|
5b9b3f742b | ||
|
|
34065dddbb | ||
|
|
ea9214bb2e | ||
|
|
f71e22768c | ||
|
|
b025dfcf58 | ||
|
|
f205ec8359 | ||
|
|
f50cee2ac7 | ||
|
|
3be9773c4f | ||
|
|
2fd3b18d39 | ||
|
|
d90cb0ec85 | ||
|
|
d75e12298a | ||
|
|
addec6339f | ||
|
|
abab44df80 | ||
|
|
4afa280066 | ||
|
|
5c6a812b86 | ||
|
|
650c9a3d6e | ||
|
|
0933c40179 | ||
|
|
2613e84447 | ||
|
|
d1f78c2716 | ||
|
|
cf89abaacf | ||
|
|
545052d5ca | ||
|
|
0d51899e9b | ||
|
|
fa32d81579 | ||
|
|
164f7bf4a6 | ||
|
|
7bdd097254 | ||
|
|
5ae1c803cb | ||
|
|
f536dca41f | ||
|
|
8d951d5025 | ||
|
|
5c31c45d05 | ||
|
|
0851436caa | ||
|
|
024bee1a6f | ||
|
|
44c20af80e | ||
|
|
65ae0a3261 | ||
|
|
24df447e44 | ||
|
|
a380250881 | ||
|
|
ff38d6935d | ||
|
|
27e1c25cf7 | ||
|
|
a5c34a6c00 | ||
|
|
6e01f83742 | ||
|
|
47ce2155b4 | ||
|
|
0c6b28c9aa | ||
|
|
4d22259ac3 | ||
|
|
7ed908bad1 | ||
|
|
dcc7185ae1 | ||
|
|
cc423566a8 | ||
|
|
e488b31597 | ||
|
|
5bbfcf75f6 | ||
|
|
8164af44b4 | ||
|
|
a1ffc93372 | ||
|
|
9e1bbff8a1 | ||
|
|
6ee219b9c7 | ||
|
|
5f23e3d7b2 | ||
|
|
854f6f3a46 | ||
|
|
63ac2b717f | ||
|
|
81726b16be | ||
|
|
4acab71e1e | ||
|
|
8b8128e33b | ||
|
|
e835d447ed | ||
|
|
7f44afc1c0 | ||
|
|
f380967e8d | ||
|
|
d640941976 | ||
|
|
e58ac666c4 | ||
|
|
ce99decad5 | ||
|
|
719e6db358 | ||
|
|
e0547de922 | ||
|
|
4b9907af1c | ||
|
|
1d09851b2b | ||
|
|
800ccaa5e3 | ||
|
|
00da261211 | ||
|
|
b81d0ff0cd | ||
|
|
715a7789ba | ||
|
|
6aa6d6b026 | ||
|
|
62f9b7a731 | ||
|
|
cc967fddb7 | ||
|
|
27ebc8bab7 | ||
|
|
71db79eded | ||
|
|
3aa263b51f | ||
|
|
59fbf8d103 | ||
|
|
b21d2c7dea | ||
|
|
20e5404248 | ||
|
|
56c58e2778 | ||
|
|
3c6ecaf66a | ||
|
|
87ca55100b | ||
|
|
589872affb | ||
|
|
73d5ea7426 | ||
|
|
b992ffca1d | ||
|
|
9c82314570 | ||
|
|
403154e09e | ||
|
|
b44398e954 | ||
|
|
46a01b1643 | ||
|
|
bf94eb8cbe | ||
|
|
b225f2030d | ||
|
|
cbe7d0241b | ||
|
|
e65a10be51 | ||
|
|
badc8255ab | ||
|
|
385d3337ef | ||
|
|
558200285b | ||
|
|
2c26b0870a | ||
|
|
2cea06b88a | ||
|
|
c977774977 | ||
|
|
314937d599 | ||
|
|
07ae0d8e42 | ||
|
|
461c5bbc2d | ||
|
|
a7f5a19a24 | ||
|
|
f344731cf9 | ||
|
|
a3f35b7e0d | ||
|
|
b025dbfdab | ||
|
|
efd9c1cd48 | ||
|
|
38eb9fe948 | ||
|
|
6ee7aaf611 | ||
|
|
5c1094adb9 | ||
|
|
93ba3a4c51 | ||
|
|
34087d03ec | ||
|
|
f136b219db | ||
|
|
84705cfe61 | ||
|
|
2a9f6038e0 | ||
|
|
0e3e603429 | ||
|
|
71a916faf2 | ||
|
|
8e02b93e39 | ||
|
|
a7a99c75eb | ||
|
|
bb3b5de179 | ||
|
|
f956502fd8 | ||
|
|
4c5ffc8d99 | ||
|
|
8dc4e8d6f8 | ||
|
|
14bc162ca6 | ||
|
|
1a6bada94c | ||
|
|
eda535a942 | ||
|
|
1e1c9cb0dc | ||
|
|
7edceff71c | ||
|
|
3dc0005032 | ||
|
|
1587d8a03c | ||
|
|
5dea3c9e63 | ||
|
|
12d4fdb307 | ||
|
|
319721b380 | ||
|
|
3dd9332eee | ||
|
|
88922e2bc0 | ||
|
|
0965577b93 | ||
|
|
f538169992 | ||
|
|
d03f290b5d | ||
|
|
8ddf8760d5 | ||
|
|
6d0bf9b39f | ||
|
|
2f5d9a6f90 | ||
|
|
783618b89c | ||
|
|
4f2f6f8575 | ||
|
|
59aca30267 | ||
|
|
605e691bff | ||
|
|
09ec276a85 | ||
|
|
590b19a1b1 | ||
|
|
be5e1a4ded | ||
|
|
8650de0c0c | ||
|
|
8fa6b4a184 | ||
|
|
e1a5b326e4 | ||
|
|
8892f3735d | ||
|
|
9eedd4ef84 | ||
|
|
b70dcb9f2d | ||
|
|
008a5a1ff9 | ||
|
|
5b7eb42a9f | ||
|
|
35d4cd2259 | ||
|
|
5bff9c773a | ||
|
|
6efb3c327f | ||
|
|
1a05d9a8cd | ||
|
|
df51c13323 | ||
|
|
a025866bac | ||
|
|
2797f3d80e | ||
|
|
0d85193f39 | ||
|
|
4d534fed31 | ||
|
|
43212f64ed | ||
|
|
75559df89d | ||
|
|
3d5156ed1d | ||
|
|
aa76fd2f9c | ||
|
|
db141f66a4 | ||
|
|
fe07deb193 | ||
|
|
7159e24aa8 | ||
|
|
1cc90d31ae | ||
|
|
76bf3ee0d6 | ||
|
|
fd3dd225ba | ||
|
|
140808e3d4 | ||
|
|
edb5a32620 | ||
|
|
88e2d73d52 | ||
|
|
7b95fea77e | ||
|
|
20eb5c4913 | ||
|
|
bc2d2456ae | ||
|
|
064531ea1f | ||
|
|
80b8508dbc | ||
|
|
02e073a503 | ||
|
|
e094d683ed | ||
|
|
bd1454c69f | ||
|
|
b726d645c3 | ||
|
|
78441ce084 | ||
|
|
4953fa4034 | ||
|
|
1f76effbfb | ||
|
|
5e20237f5b | ||
|
|
dd44d0a713 | ||
|
|
a28c040eb9 | ||
|
|
6a787dd951 | ||
|
|
5d9132623f | ||
|
|
95a039aaaa | ||
|
|
f7193b09fd | ||
|
|
498d226b2f | ||
|
|
ccc51244e3 | ||
|
|
516f49e913 | ||
|
|
f1fdb9bbc8 | ||
|
|
44e76bea23 | ||
|
|
a898e2a534 | ||
|
|
681435e0b4 | ||
|
|
d2eace00c9 | ||
|
|
a2ab3bc32c | ||
|
|
ab4a8396e1 | ||
|
|
733cb397b2 | ||
|
|
3300587c6b | ||
|
|
878bd87328 | ||
|
|
7f9a2325e5 | ||
|
|
625b3b7ec1 | ||
|
|
ff23666d56 | ||
|
|
f4fade3d26 | ||
|
|
16c3e0ddac | ||
|
|
0d216c2d82 | ||
|
|
a1fb5b1153 | ||
|
|
e97326845c | ||
|
|
c95d446c53 | ||
|
|
6e749ef12f | ||
|
|
71a6d791c2 | ||
|
|
5ae2cac088 | ||
|
|
31fab8cdae | ||
|
|
5bfec84432 | ||
|
|
caa4a8e228 | ||
|
|
850dd87332 | ||
|
|
fb3e9b020e | ||
|
|
02a348b657 | ||
|
|
5c41dc3901 | ||
|
|
74a3c55623 | ||
|
|
bc8c8a6cd9 | ||
|
|
bdcc2e1790 | ||
|
|
749f21e482 | ||
|
|
99bc72a908 | ||
|
|
aab8bb262d | ||
|
|
f14a4ef8e5 | ||
|
|
3bf50856ce | ||
|
|
c3e55aa5ae | ||
|
|
704548336a | ||
|
|
0ea5e12b4a | ||
|
|
28fd240de2 | ||
|
|
586c0e6d62 | ||
|
|
c920eaa9be | ||
|
|
d2f210d70d | ||
|
|
683036298e | ||
|
|
93b536863f | ||
|
|
403f4eb7a7 | ||
|
|
4c71f3c5cd | ||
|
|
1cc75362d6 | ||
|
|
106e4cae90 | ||
|
|
10221d51f1 | ||
|
|
aff87c3cb3 | ||
|
|
b0f640db61 | ||
|
|
af0fed2e34 | ||
|
|
e996f2f51a | ||
|
|
0fe18d0dc1 | ||
|
|
cc6c45d7fb | ||
|
|
2646c6c159 | ||
|
|
ce66352f6d | ||
|
|
9e133adf99 | ||
|
|
b1851f2aff | ||
|
|
b943e0abff | ||
|
|
a2adc61c6f | ||
|
|
c7208bf1ff | ||
|
|
d6d556911b | ||
|
|
b8ecd2d6dd | ||
|
|
1e5ef005fb | ||
|
|
d11db0f0f2 | ||
|
|
8e43e72082 | ||
|
|
ae86a253e2 | ||
|
|
0c38147fcb | ||
|
|
e1ea64b0b9 | ||
|
|
fa35e792c1 | ||
|
|
f5807424c2 | ||
|
|
4c006959fa | ||
|
|
f9a19e3f24 | ||
|
|
d5c24f5122 | ||
|
|
392e404cc6 | ||
|
|
b04e067c83 | ||
|
|
ed2937f4d1 | ||
|
|
8848006540 | ||
|
|
7a4fe458b8 | ||
|
|
f76faa88b8 | ||
|
|
9ce760c798 | ||
|
|
152ebe6e61 | ||
|
|
1a6eb80bcd | ||
|
|
db143bb654 | ||
|
|
8b043038b8 | ||
|
|
745bceac22 | ||
|
|
583f3b0e21 | ||
|
|
cc9c72747a | ||
|
|
b473f7a271 | ||
|
|
b726ace943 | ||
|
|
499edda1d7 | ||
|
|
3bfd91de51 | ||
|
|
c7e139186b | ||
|
|
7c84490649 | ||
|
|
b75ef17db7 | ||
|
|
daa12e97c6 | ||
|
|
1c5eb82e93 | ||
|
|
ff387010b3 | ||
|
|
27dd805acb | ||
|
|
5f1761645f | ||
|
|
f8c9282e8c | ||
|
|
37f46df390 | ||
|
|
4f8138c70a | ||
|
|
db3b4773bc | ||
|
|
5130b41f5b | ||
|
|
81bb14e181 | ||
|
|
e93ab45dc3 | ||
|
|
fe04103e24 | ||
|
|
7777bb6d58 | ||
|
|
e9bcd9e0bd | ||
|
|
2cc2c22094 | ||
|
|
319000b448 | ||
|
|
b4ba76a15a | ||
|
|
3ff0785fe7 | ||
|
|
1b7d3b0502 | ||
|
|
c43711a216 | ||
|
|
3c86d811c8 | ||
|
|
d94c1d2143 | ||
|
|
3fd475e1d5 | ||
|
|
309a6cd65e | ||
|
|
924f6dc76d | ||
|
|
56a9a7cebf | ||
|
|
b8cbb18f7b | ||
|
|
27caf0ef3d | ||
|
|
b203ccbe74 | ||
|
|
cb962d5a74 | ||
|
|
539800cc3b | ||
|
|
b77ae3e0b5 | ||
|
|
dfc3f9e13c | ||
|
|
f120551ef3 | ||
|
|
b03a4cde78 | ||
|
|
71b2081a75 | ||
|
|
5fbc3ae3d5 | ||
|
|
1ce37e53c7 | ||
|
|
9ae12a7c22 | ||
|
|
b3deef5e80 | ||
|
|
28317ecb34 | ||
|
|
78efa7613d | ||
|
|
0bf26d8f1d | ||
|
|
ac70eb701c | ||
|
|
c834f241a8 | ||
|
|
aa39b392a9 | ||
|
|
907ddb614d | ||
|
|
dd0e3feae3 | ||
|
|
c24207428c | ||
|
|
8b23026d6c | ||
|
|
cc9b7aa7dd | ||
|
|
318a41d723 | ||
|
|
5a52177d15 | ||
|
|
2e8c43215d | ||
|
|
45966deb49 | ||
|
|
7aa644da5c | ||
|
|
56379532a6 | ||
|
|
9bf0755c81 | ||
|
|
f01d1d1064 | ||
|
|
e9b0ecf021 | ||
|
|
cbc6f38774 | ||
|
|
e220b76c3e | ||
|
|
8d1bf96267 | ||
|
|
e49922064d | ||
|
|
95882fce68 | ||
|
|
cc20ab3392 | ||
|
|
fe50ed29ea | ||
|
|
e9db2caace | ||
|
|
2d55aea467 | ||
|
|
521c2c3e06 | ||
|
|
0bc8d8252e | ||
|
|
80f4022891 | ||
|
|
998af2a3ab | ||
|
|
3b820e8c0c | ||
|
|
8bc19e28e0 | ||
|
|
0d0516ad05 | ||
|
|
6997026064 | ||
|
|
dd1b6502c6 | ||
|
|
060f141b21 | ||
|
|
6ca591ab75 | ||
|
|
bc1049f5ae | ||
|
|
05568496c1 | ||
|
|
ab9ebb9d0d | ||
|
|
ab197ef51e | ||
|
|
7fc5f46bbb | ||
|
|
969af1567a | ||
|
|
d1013e82de | ||
|
|
bb2d058167 | ||
|
|
7a10b64cf7 | ||
|
|
f6db678b20 | ||
|
|
97290b2442 | ||
|
|
b8504ed2a9 | ||
|
|
497911d6c0 | ||
|
|
4d96d0a6c6 | ||
|
|
9b58b6642e | ||
|
|
45f651ab00 | ||
|
|
400fe31061 | ||
|
|
4b6ab0389b | ||
|
|
baf7656d2f | ||
|
|
6e58c43d8a | ||
|
|
dce4eb636a | ||
|
|
c170255580 | ||
|
|
8bf0938e60 | ||
|
|
382db59cd0 | ||
|
|
2bbf49b2f5 | ||
|
|
6a6ae8ae46 | ||
|
|
03fa148e81 | ||
|
|
ea3203dbab | ||
|
|
aa831836e1 | ||
|
|
0eb1520707 | ||
|
|
a81ace2ccb | ||
|
|
a7da06998e | ||
|
|
5e5e3e0588 | ||
|
|
bc369fb1ab | ||
|
|
bb6bccb782 | ||
|
|
1fe59e41ea | ||
|
|
606346761f | ||
|
|
0d1f1d09f0 | ||
|
|
48e1488bc9 | ||
|
|
0259b6adfb | ||
|
|
13f36e0416 | ||
|
|
dbb1fb5a06 | ||
|
|
755c00e67c | ||
|
|
ad900ba436 | ||
|
|
ea7dc5f1e1 | ||
|
|
be53bb8951 | ||
|
|
167ff2a198 | ||
|
|
ee3c9bef5e | ||
|
|
6d307c6e11 | ||
|
|
a0705cb86e | ||
|
|
e3f72ebae2 | ||
|
|
98f45695db | ||
|
|
3cb95b4d2d | ||
|
|
892aea138e | ||
|
|
fca31c4307 | ||
|
|
684f7b7f21 | ||
|
|
da06998457 | ||
|
|
f466679bd1 | ||
|
|
4a217a0cd1 | ||
|
|
045f6c1bce | ||
|
|
1d4261a997 | ||
|
|
da80bced53 | ||
|
|
1d687ac734 | ||
|
|
bef7a12964 | ||
|
|
14ff078b85 | ||
|
|
cd940bd797 | ||
|
|
093809eac6 | ||
|
|
c56f72794e | ||
|
|
9375e99f92 | ||
|
|
b66eeaf2f7 | ||
|
|
c6855e01a9 | ||
|
|
7f975a37f9 | ||
|
|
41cfa5f3d0 | ||
|
|
9c45206c28 | ||
|
|
308aa42b67 | ||
|
|
5174d14d5c | ||
|
|
6fe338e563 | ||
|
|
266d896871 | ||
|
|
7e85ae7bd2 | ||
|
|
9a284a3da4 | ||
|
|
871f0e26df | ||
|
|
e56885f4c9 | ||
|
|
149f4b4607 | ||
|
|
80750f730f | ||
|
|
253f6ee1d9 | ||
|
|
bac149e824 | ||
|
|
3ec34448fa | ||
|
|
919c4240fc | ||
|
|
44c2378f2a | ||
|
|
377b176260 | ||
|
|
d2a8ca7d89 | ||
|
|
d4faae187a | ||
|
|
5e52fae7c1 | ||
|
|
b974bf54dc | ||
|
|
4b6c91e827 | ||
|
|
51467dc4a3 | ||
|
|
eb79a3edaa | ||
|
|
37eca782cc | ||
|
|
19666f2598 | ||
|
|
3436bddaea | ||
|
|
5cc6b0e3d3 | ||
|
|
2b21e22e97 | ||
|
|
57df945738 | ||
|
|
e2e474c59d | ||
|
|
4c19dc22d7 | ||
|
|
ef44b4ccac | ||
|
|
8ee2f2657a | ||
|
|
f635c8715c | ||
|
|
3ceeb72ac6 | ||
|
|
e0b8938fef | ||
|
|
811ca05916 | ||
|
|
df9bbd7ab3 | ||
|
|
339e331f1d | ||
|
|
283e67b57e | ||
|
|
6c1fb9ffd0 | ||
|
|
c3fe192243 | ||
|
|
5b14236bac | ||
|
|
a16355fe33 | ||
|
|
1ebcbd92e2 | ||
|
|
3060578e3b | ||
|
|
b8715bfee6 | ||
|
|
7fe9231e64 | ||
|
|
9289af0132 | ||
|
|
1f7722088d | ||
|
|
e548877ead | ||
|
|
21391c8d2f | ||
|
|
99551dd1ec | ||
|
|
b5a26936e8 | ||
|
|
cf28136003 | ||
|
|
349236c932 | ||
|
|
0ce6fad14e | ||
|
|
0a9e2baef1 | ||
|
|
da562ad74c | ||
|
|
d45dc17f25 | ||
|
|
7f1aefa09b | ||
|
|
2162054659 | ||
|
|
0ff3ca8a12 | ||
|
|
47c8a0e0b8 | ||
|
|
2a347226df | ||
|
|
962452d6d1 | ||
|
|
2df165c49e | ||
|
|
fc3a634e22 | ||
|
|
01a9141780 | ||
|
|
f783b9ec0d | ||
|
|
c9575d7cb0 | ||
|
|
252003f18e | ||
|
|
b745a51f30 | ||
|
|
7509b9fadf | ||
|
|
f878896a77 | ||
|
|
d09af20897 | ||
|
|
b520475b22 | ||
|
|
ffa2505450 | ||
|
|
d73e945329 | ||
|
|
779aacbf07 | ||
|
|
2ed400bfc6 | ||
|
|
02332d78f3 | ||
|
|
e8ad78f837 | ||
|
|
aede700619 | ||
|
|
ffa5fb0ea0 | ||
|
|
42079cf3fb | ||
|
|
d14eda2c1a | ||
|
|
579d44203f | ||
|
|
a7695aa5d3 | ||
|
|
f3ae8fd904 | ||
|
|
4174749b24 | ||
|
|
e89ae3a4a9 | ||
|
|
13122ca9bf | ||
|
|
34a4a532b2 | ||
|
|
d08fcc522e | ||
|
|
f0ff5a416e | ||
|
|
e66ca60340 | ||
|
|
71e5cd962e | ||
|
|
da659739d2 | ||
|
|
dff57ae35d | ||
|
|
2856f81bb9 | ||
|
|
5224641f1a | ||
|
|
a4c02082cb | ||
|
|
80c0dce7b2 | ||
|
|
de25a84dc2 | ||
|
|
8187bc84e3 | ||
|
|
880ea61dd8 | ||
|
|
7953f573c6 | ||
|
|
2457419b4a | ||
|
|
183c780698 | ||
|
|
406c8e0303 | ||
|
|
6778c8e905 | ||
|
|
3a94daeaf8 | ||
|
|
e5c64db280 | ||
|
|
d3700dfd70 | ||
|
|
975b45dbfe | ||
|
|
a49b07975c | ||
|
|
5e57ab95ce | ||
|
|
9c43fa9161 | ||
|
|
9b286ecbfd | ||
|
|
b7e9569ccb | ||
|
|
e922131422 | ||
|
|
34813ef32c | ||
|
|
e899f1d31c | ||
|
|
d1bfeee334 | ||
|
|
9ea1f7d53e | ||
|
|
f40bc773d2 | ||
|
|
5d0a6630b9 | ||
|
|
114b81c9a4 | ||
|
|
b10bdb1e78 | ||
|
|
ee5ad02d42 | ||
|
|
cd2094ff71 | ||
|
|
5052a4161c | ||
|
|
7fbcde8af0 | ||
|
|
b670849ebd | ||
|
|
288c6b3f09 | ||
|
|
802d70568c | ||
|
|
c4721169e3 | ||
|
|
efe600f6de | ||
|
|
7e83e07cf3 | ||
|
|
65f0be0c20 | ||
|
|
adf9c97616 | ||
|
|
dfc7645609 | ||
|
|
9dde161b65 | ||
|
|
0324b118ee | ||
|
|
4cc6665d0a | ||
|
|
be7dcc0ad8 |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,4 +1,9 @@
|
|||||||
/plugins
|
|
||||||
/shims
|
/shims
|
||||||
/version
|
/version
|
||||||
/versions
|
/versions
|
||||||
|
/sources
|
||||||
|
/cache
|
||||||
|
/libexec/*.dylib
|
||||||
|
/src/Makefile
|
||||||
|
/src/*.o
|
||||||
|
/bats/
|
||||||
|
|||||||
7
.travis.yml
Normal file
7
.travis.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
sudo: false
|
||||||
|
install: git clone --depth 1 https://github.com/sstephenson/bats.git
|
||||||
|
script: make test
|
||||||
|
language: c
|
||||||
|
env:
|
||||||
|
- PYENV_NATIVE_EXT=
|
||||||
|
- PYENV_NATIVE_EXT=1
|
||||||
366
CHANGELOG.md
Normal file
366
CHANGELOG.md
Normal file
@@ -0,0 +1,366 @@
|
|||||||
|
## Version History
|
||||||
|
|
||||||
|
### 20151210
|
||||||
|
|
||||||
|
+ pyenv: Add a default hook for Anaconda to look for original `$PATH` (#491)
|
||||||
|
+ pyenv: Skip virtualenv aliases on `pyenv versions --skip-aliases` (yyuu/pyenv-virtualenv#126)
|
||||||
|
+ python-build: Add CPython 2.7.11, 3.5.1 (#494, #498)
|
||||||
|
+ python-build: Update OpenSSL to 1.0.1q (#496)
|
||||||
|
+ python-build: Adding SSL patch to build 2.7.3 on Debian (#495)
|
||||||
|
|
||||||
|
### 20151124
|
||||||
|
|
||||||
|
* pyenv: Import recent changes from rbenv 5fb9c84e14c8123b2591d22e248f045c7f8d8a2c
|
||||||
|
* pyenv: List anaconda-style virtual environments as a version in pyenv (#471)
|
||||||
|
* python-build: Import recent changes from ruby-build v20151028
|
||||||
|
* python-build: Add PyPy 4.0.1 (#489)
|
||||||
|
* python-build: Add `miniconda*-3.18.3` (#477)
|
||||||
|
* python-build: Add CPython 2.7.11 RC1
|
||||||
|
|
||||||
|
### 20151105
|
||||||
|
|
||||||
|
* python-build: Add anaconda2-2.4.0 and anacondaa3-2.4.0
|
||||||
|
* python-biuld: Add Portable PyPy 4.0 (#472)
|
||||||
|
|
||||||
|
### 20151103
|
||||||
|
|
||||||
|
* python-build: Add PyPy 4.0.0 (#463)
|
||||||
|
* python-build: Add Jython 2.7.1b2
|
||||||
|
* python-build: Add warning about setuptools issues on CPython 3.0.1 on OS X (#456)
|
||||||
|
|
||||||
|
### 20151006
|
||||||
|
|
||||||
|
* pyenv: Different behaviour when invoking .py script through symlink (#379, #404)
|
||||||
|
* pyenv: Enabled Gitter on the project (#436, #444)
|
||||||
|
* python-build: Add Jython 2.7.1b1
|
||||||
|
* python-build: Install OpenSSL on OS X if no proper versionn is available (#429)
|
||||||
|
|
||||||
|
### 20150913
|
||||||
|
|
||||||
|
* python-build: Add CPython 3.5.0
|
||||||
|
* python-build: Remove CPython 3.5.0 release candidates
|
||||||
|
* python-build: Fixed anaconda3 repo's paths (#439)
|
||||||
|
* python-build: Add miniconda-3.16.0 and miniconda3-3.16.0 (#435)
|
||||||
|
|
||||||
|
### 20150901
|
||||||
|
|
||||||
|
* python-build: Add CPython 3.5.0 release candidates; 3.5.0rc1 and 3.5.0rc2
|
||||||
|
* python-build: Disabled `_FORTITY_SOURCE` to fix CPython >= 2.4, <= 2.4.3 builds (#422)
|
||||||
|
* python-build: Removed CPython 3.5.0 betas
|
||||||
|
* python-build: Add miniconda-3.10.1 and miniconda3-3.10.1 (#414)
|
||||||
|
* python-build: Add PyPy 2.6.1 (#433)
|
||||||
|
* python-build: Add PyPy-STM 2.3 and 2.5.1 (#428)
|
||||||
|
* python-build: Ignore user's site-packages on ensurepip/get-pip (#411)
|
||||||
|
* pyenv: Import recent changes from ruby-build v20150818
|
||||||
|
|
||||||
|
#### 20150719
|
||||||
|
|
||||||
|
* python-build: Add CPython `3.6-dev` (#413)
|
||||||
|
* python-build: Add Anaconda/Anaconda3 2.3.0
|
||||||
|
* python-build: Fix download URL of portable PyPy 2.6 (fixes #389)
|
||||||
|
* python-build: Use custom `MACOSX_DEPLOYMENT_TARGET` if defined (#312)
|
||||||
|
* python-build: Use original CPython repository instead of mirror at bitbucket.org as the source of `*-dev` versions (#409)
|
||||||
|
* python-build: Pin pip version to 1.5.6 for python 3.1.5 (#351)
|
||||||
|
|
||||||
|
#### 20150601
|
||||||
|
|
||||||
|
* python-build: Add PyPy 2.6.0
|
||||||
|
* python-build: Add PyPy 2.5.1 portable
|
||||||
|
* python-build: Add CPython 3.5.0 beta releases; 3.5.0b1 and 3.5.0b2
|
||||||
|
* python-build: Removed CPython 3.5.0 alpha releases
|
||||||
|
* python-build: Fix inverted condition for `--altinstall` of ensurepip (#255)
|
||||||
|
* python-build: Skip installing `setuptools` by `ez_setup.py` explicitly (fixes #381)
|
||||||
|
* python-build: Import changes from ruby-build v20150519
|
||||||
|
|
||||||
|
#### 20150524
|
||||||
|
|
||||||
|
* pyenv: Improve `pyenv version`, if there is one missing (#290)
|
||||||
|
* pyenv: Improve pip-rehash to handle versions in command, like `pip2` and `pip3.4` (#368)
|
||||||
|
* python-build: Add CPython release; 2.7.10 (#380)
|
||||||
|
* python-build: Add Miniconda/Miniconda3 3.9.1 and Anaconda/Anaconda3 2.2.0 (#375, #376)
|
||||||
|
|
||||||
|
#### 20150504
|
||||||
|
|
||||||
|
* python-build: Add Jython 2.7.0
|
||||||
|
* python-build: Add CPython alpha release; 3.5.0a4
|
||||||
|
* python-build: Add CPython 3.1, 3.1.1, and 3.1.2
|
||||||
|
* python-build: Fix pip version to 1.5.6 for CPython 3.1.x (#351)
|
||||||
|
|
||||||
|
#### 20150326
|
||||||
|
|
||||||
|
* python-build: Add Portable PyPy binaries from https://github.com/squeaky-pl/portable-pypy (#329)
|
||||||
|
* python-build: Add CPython alpha release; 3.5.0a2 (#328)
|
||||||
|
* python-build: Add pypy-2.5.1 (fixes #338)
|
||||||
|
* pyenv: Import recent changes from rbenv 4d72eefffc548081f6eee2e54d3b9116b9f9ee8e
|
||||||
|
|
||||||
|
#### 20150226
|
||||||
|
|
||||||
|
* python-build: Add CPython release; 3.4.3 (#323)
|
||||||
|
* python-build: Add CPython alpha release; 3.5.0a1 (#324)
|
||||||
|
* python-build: Add Miniconda/Miniconda3 3.8.3 (#318)
|
||||||
|
|
||||||
|
#### 20150204
|
||||||
|
|
||||||
|
* python-build: Add PyPy 2.5.0 release (#311)
|
||||||
|
* python-build: Add note about `--enable-shared` and RPATH (#217)
|
||||||
|
* python-build: Fix regression of `PYTHON_MAKE_INSTALL_TARGET` and add test (#255)
|
||||||
|
* python-build: Symlink `pythonX.Y-config` to `python-config` if `python-config` is missing (#296)
|
||||||
|
* python-build: Latest `pip` can't be installed into `3.0.1` (#309)
|
||||||
|
|
||||||
|
#### 20150124
|
||||||
|
|
||||||
|
* python-build: Import recent changes from ruby-build v20150112
|
||||||
|
* python-build: Prevent adding `/Library/Python/X.X/site-packages` to `sys.path` whtn `--enable-framework` is enabled on OS X. Thanks @s1341 (#292)
|
||||||
|
* python-build: Add new IronPython release; 2.7.5
|
||||||
|
|
||||||
|
#### 20141211
|
||||||
|
|
||||||
|
* pyenv: Add bulit-in `pip-rehash` feature. You don't need to install [pyenv-pip-rehash](https://github.com/yyuu/pyenv-pip-rehash) anymore.
|
||||||
|
* python-build: Add new CPython release; 2.7.9 (#284)
|
||||||
|
* python-build: Add new PyPy releases; pypy3-2.4.0, pypy3-2.4.0-src (#277)
|
||||||
|
* python-build: Add build definitions of PyPy nightly build
|
||||||
|
|
||||||
|
#### 20141127
|
||||||
|
|
||||||
|
* python-build: Add new CPython release candidates; 2.7.9rc1 (#276)
|
||||||
|
|
||||||
|
#### 20141118
|
||||||
|
|
||||||
|
* python-build: Fix broken `setup_builtin_patches` (#270)
|
||||||
|
* python-build: Add a patch to allow building 2.6.9 on OS X 10.9 with `--enable-framework` (#269, #271)
|
||||||
|
|
||||||
|
#### 20141106
|
||||||
|
|
||||||
|
* pyenv: Optimize pyenv-which. Thanks to @blueyed (#129)
|
||||||
|
* python-build: Add Miniconda/Miniconda3 3.7.0 and Anaconda/Anaconda3 2.1.0 (#260)
|
||||||
|
* python-build: Use HTTPS for mirror download URLs (#262)
|
||||||
|
* python-build: Set `rpath` for `--shared` build of PyPy (#244)
|
||||||
|
* python-build: Support `make altinstall` when building CPython/Stackless (#255)
|
||||||
|
* python-build: Import recent changes from ruby-build v20141028 (#265)
|
||||||
|
|
||||||
|
#### 20141012
|
||||||
|
|
||||||
|
* python-build: Add new CPython releases; 3.2.6, 3.3.6 (#253)
|
||||||
|
|
||||||
|
#### 20141011
|
||||||
|
|
||||||
|
* python-build: Fix build error of Stackless 3.3.5 on OS X (#250)
|
||||||
|
* python-build: Add new Stackless releases; stackless-2.7.7, stackless-2.7.8, stackless-3.4.1 (#252)
|
||||||
|
|
||||||
|
#### 20141008
|
||||||
|
|
||||||
|
* python-build: Add new CPython release; 3.4.2 (#251)
|
||||||
|
* python-build: Add new CPython release candidates; 3.2.6rc1, 3.3.6rc1 (#248)
|
||||||
|
|
||||||
|
#### 20140924
|
||||||
|
|
||||||
|
* pyenv: Fix an unintended behavior when user does not have write permission on `$PYENV_ROOT` (#230)
|
||||||
|
* pyenv: Fix a zsh completion issue (#232)
|
||||||
|
* python-build: Add new PyPy release; pypy-2.4.0, pypy-2.4.0-src (#241)
|
||||||
|
|
||||||
|
#### 20140825
|
||||||
|
|
||||||
|
* pyenv: Fix zsh completion with multiple words (#215)
|
||||||
|
* python-build: Display the package name of `hg` as `mercurial` in message (#212)
|
||||||
|
* python-build: Unset `PIP_REQUIRE_VENV` during build (#216)
|
||||||
|
* python-build: Set `MACOSX_DEPLOYMENT_TARGET` from the product version of OS X (#219, #220)
|
||||||
|
* python-build: Add new Jython release; jython2.7-beta3 (#223)
|
||||||
|
|
||||||
|
#### 20140705
|
||||||
|
|
||||||
|
* python-build: Add new CPython release; 2.7.8 (#201)
|
||||||
|
* python-build: Support `SETUPTOOLS_VERSION` and `PIP_VERSION` to allow installing specific version of setuptools/pip (#202)
|
||||||
|
|
||||||
|
#### 20140628
|
||||||
|
|
||||||
|
* python-build: Add new Anaconda releases; anaconda-2.0.1, anaconda3-2.0.1 (#195)
|
||||||
|
* python-build: Add new PyPy3 release; pypy3-2.3.1 (#198)
|
||||||
|
* python-build: Add ancient CPython releases; 2.1.3, 2.2.3, 2.3.7 (#199)
|
||||||
|
* python-build: Use `ez_setup.py` and `get-pip.py` instead of installing them from tarballs (#194)
|
||||||
|
* python-build: Add support for command-line options to `ez_setup.py` and `get-pip.py` (#200)
|
||||||
|
|
||||||
|
#### 20140615
|
||||||
|
|
||||||
|
* python-build: Update default setuptools version (4.0.1 -> 5.0) (#190)
|
||||||
|
|
||||||
|
#### 20140614
|
||||||
|
|
||||||
|
* pyenv: Change versioning schema (`v0.4.0-YYYYMMDD` -> `vYYYYMMDD`)
|
||||||
|
* python-build: Add new PyPy release; pypy-2.3.1, pypy-2.3.1-src
|
||||||
|
* python-build: Create symlinks for executables with version suffix (#182)
|
||||||
|
* python-build: Use SHA2 as default digest algorithm to verify downloaded archives
|
||||||
|
* python-build: Update default setuptools version (4.0 -> 4.0.1) (#183)
|
||||||
|
* python-build: Import recent changes from ruby-build v20140524 (#184)
|
||||||
|
|
||||||
|
#### 0.4.0-20140602
|
||||||
|
|
||||||
|
* python-build: Add new Anaconda/Anaconda3 releases; anaconda-2.0.0, anaconda3-2.0.0 (#179)
|
||||||
|
* python-build: Add new CPython release; 2.7.7 (#180)
|
||||||
|
* python-build: Update default setuptools version (3.6 -> 4.0) (#181)
|
||||||
|
* python-build: Respect environment variables of `CPPFLAGS` and `LDFLAGS` (#168)
|
||||||
|
* python-build: Support for xz-compressed Python tarballs (#177)
|
||||||
|
|
||||||
|
#### 0.4.0-20140520
|
||||||
|
|
||||||
|
* python-build: Add new CPython release; 3.4.1 (#170, #171)
|
||||||
|
* python-build: Update default pip version (1.5.5 -> 1.5.6) (#169)
|
||||||
|
|
||||||
|
#### 0.4.0-20140516
|
||||||
|
|
||||||
|
* pyenv: Prefer gawk over awk if both are available.
|
||||||
|
* python-build: Add new PyPy release; pypy-2.3, pypy-2.3-src (#162)
|
||||||
|
* python-build: Add new Anaconda release; anaconda-1.9.2 (#155)
|
||||||
|
* python-build: Add new Miniconda releases; miniconda-3.3.0, minoconda-3.4.2, miniconda3-3.3.0, miniconda3-3.4.2
|
||||||
|
* python-build: Add new Stackless releases; stackless-2.7.3, stackless-2.7.4, stackless-2.7.5, stackless-2.7.6, stackless-3.2.5, stackless-3.3.5 (#164)
|
||||||
|
* python-build: Add IronPython versions (setuptools and pip will work); ironpython-2.7.4, ironpython-dev
|
||||||
|
* python-build: Add new Jython beta release; jython-2.7-beta2
|
||||||
|
* python-build: Update default setuptools version (3.4.1 -> 3.6)
|
||||||
|
* python-build: Update default pip version (1.5.4 -> 1.5.5)
|
||||||
|
* python-build: Update GNU Readline (6.2 -> 6.3)
|
||||||
|
* python-build: Import recent changes from ruby-build v20140420
|
||||||
|
|
||||||
|
#### 0.4.0-20140404
|
||||||
|
|
||||||
|
* pyenv: Reads only the first word from version file. This is as same behavior as rbenv.
|
||||||
|
* python-build: Fix build of Tkinter with Tcl/Tk 8.6 (#131)
|
||||||
|
* python-build: Fix build problem with Readline 6.3 (#126, #131, #149, #152)
|
||||||
|
* python-build: Do not exit with errors even if some of modules are absent (#131)
|
||||||
|
* python-build: MacOSX was mispelled as MaxOSX in `anaconda_architecture` (#136)
|
||||||
|
* python-build: Use default `cc` as the C Compiler to build CPython (#148, #150)
|
||||||
|
* python-build: Display value from `pypy_architecture` and `anaconda_architecture` on errors (yyuu/pyenv-virtualenv#18)
|
||||||
|
* python-build: Remove old development version; 2.6-dev
|
||||||
|
* python-build: Update default setuptools version (3.3 -> 3.4.1)
|
||||||
|
|
||||||
|
#### 0.4.0-20140317
|
||||||
|
|
||||||
|
* python-build: Add new CPython releases; 3.4.0 (#133)
|
||||||
|
* python-build: Add new Anaconda releases; anaconda-1.9.0, anaconda-1.9.1
|
||||||
|
* python-build: Add new Miniconda releases; miniconda-3.0.4, miniconda-3.0.5, miniconda3-3.0.4, miniconda3-3.0.5
|
||||||
|
* python-build: Update default setuptools version (3.1 -> 3.3)
|
||||||
|
|
||||||
|
#### 0.4.0-20140311
|
||||||
|
|
||||||
|
* python-build: Add new CPython releases; 3.3.5 (#127)
|
||||||
|
* python-build: Add new CPython release candidates; 3.4.0rc1, 3.4.0rc2, 3.4.0rc3
|
||||||
|
* python-build: Update default setuptools version (2.2 -> 3.1)
|
||||||
|
* python-build: Update default pip version (1.5.2 -> 1.5.4)
|
||||||
|
* python-build: Import recent changes from ruby-build v20140225
|
||||||
|
|
||||||
|
#### 0.4.0-20140211
|
||||||
|
|
||||||
|
* python-build: Add new CPython release candidates; 3.3.4, 3.4.0b3
|
||||||
|
* python-build: Add [Anaconda](https://store.continuum.io/cshop/anaconda/) and [Miniconda](http://repo.continuum.io/miniconda/) binary distributions
|
||||||
|
* python-build: Display error if the wget does not support Server Name Indication (SNI) to avoid SSL verification error when downloading from https://pypi.python.org. (#60)
|
||||||
|
* python-build: Update default setuptools version (2.1 -> 2.2)
|
||||||
|
* python-build: Update default pip version (1.5.1 -> 1.5.2)
|
||||||
|
* python-build: Import recent changes from ruby-build v20140204
|
||||||
|
|
||||||
|
#### 0.4.0-20140123
|
||||||
|
|
||||||
|
* pyenv: Always append the directory at the top of the `$PATH` to return proper value for `sys.executable` (#98)
|
||||||
|
* pyenv: Unset `GREP_OPTIONS` to avoid issues of conflicting options (#101)
|
||||||
|
* python-build: Install `pip` with using `ensurepip` if available
|
||||||
|
* python-build: Add support for framework installation (`--enable-framework`) of CPython (#55, #99)
|
||||||
|
* python-build: Import recent changes from ruby-build v20140110.1
|
||||||
|
* python-build: Import `bats` tests from ruby-build v20140110.1
|
||||||
|
|
||||||
|
#### 0.4.0-20140110.1
|
||||||
|
|
||||||
|
* python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc.
|
||||||
|
|
||||||
|
#### 0.4.0-20140110
|
||||||
|
|
||||||
|
* pyenv: Reliably detect parent shell in `pyenv init` (#93)
|
||||||
|
* pyenv: Import recent changes from rbenv 0.4.0
|
||||||
|
* pyenv: Import `bats` tests from rbenv 0.4.0
|
||||||
|
* python-build: Add new CPython releases candidates; 3.4.0b2
|
||||||
|
* python-build: Add ruby-build style patching feature (#91)
|
||||||
|
* python-build: Set `RPATH` if `--enable-shared` was given (#65, #66, 82)
|
||||||
|
* python-build: Update default setuptools version (2.0 -> 2.1)
|
||||||
|
* python-build: Update default pip version (1.4.1 -> 1.5)
|
||||||
|
* python-build: Activate friendly CPython during build if the one is not activated (8fa6b4a1847851919ad7857c6c42ed809a4d277b)
|
||||||
|
* python-build: Fix broken install.sh
|
||||||
|
* python-build: Import recent changes from ruby-build v20131225.1
|
||||||
|
* version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead.
|
||||||
|
|
||||||
|
#### 0.4.0-20131217
|
||||||
|
|
||||||
|
* python-build: Fix broken build of CPython 3.3+ on Darwin
|
||||||
|
* python-build: Not build GNU Readline uselessly on Darwin
|
||||||
|
|
||||||
|
#### 0.4.0-20131216
|
||||||
|
|
||||||
|
* python-build: Add new CPython releases; 3.3.3 (#80)
|
||||||
|
* python-build: Add new CPython releases candidates; 3.4.0b1
|
||||||
|
* python-build: Add new PyPy releases; pypy-2.2.1, pypy-2.2.1-src
|
||||||
|
* python-build: Update default setuptools version (1.3.2 -> 2.0)
|
||||||
|
* python-build: Imported recent changes from ruby-build v20131211
|
||||||
|
* pyenv: Fix pyenv-prefix to trim "/bin" in `pyenv prefix system` (#88)
|
||||||
|
|
||||||
|
#### 0.4.0-20131116
|
||||||
|
|
||||||
|
* python-build: Add new CPython releases; 2.6.9, 2.7.6 (#76)
|
||||||
|
* python-build: Add new CPython release candidates; 3.3.3-rc1, 3.3.3-rc2
|
||||||
|
* python-build: Add new PyPy releases; pypy-2.2, pypy-2.2-src (#77)
|
||||||
|
* python-build: Update default setuptools version (1.1.6 -> 1.3.2)
|
||||||
|
* python-build: Imported recent changes from ruby-build v20131030
|
||||||
|
|
||||||
|
#### 0.4.0-20131023
|
||||||
|
|
||||||
|
* pyenv: Improved [fish shell](http://fishshell.com/) support
|
||||||
|
* python-build: Add new PyPy releases; pypy-2.1, pypy-2.1-src, pypy3-2.1-beta1, pypy3-2.1-beta1-src
|
||||||
|
* python-build: Add ancient versions; 2.4, 2.4.1, 2.4.3, 2.4.4 and 2.4.5
|
||||||
|
* python-build: Add alpha releases; 3.4.0a2, 3.4.0a3, 3.4.0a4
|
||||||
|
* python-build: Update default pip version (1.4 -> 1.4.1)
|
||||||
|
* python-build: Update default setuptools version (0.9.7 -> 1.1.6)
|
||||||
|
|
||||||
|
#### 0.4.0-20130726
|
||||||
|
|
||||||
|
* pyenv: Fix minor issue of variable scope in `pyenv versions`
|
||||||
|
* python-build: Update base version to ruby-build v20130628
|
||||||
|
* python-build: Use brew managed OpenSSL and GNU Readline if they are available
|
||||||
|
* python-build: Fix build of CPython 3.3+ on OS X (#29)
|
||||||
|
* python-build: Fix build of native modules of CPython 2.5 on OS X (#33)
|
||||||
|
* python-build: Fix build of CPython 2.6+ on openSUSE (#36)
|
||||||
|
* python-build: Add ancient versions; 2.4.2 and 2.4.6. The build might be broken. (#37)
|
||||||
|
* python-build: Update default pip version (1.3.1 -> 1.4)
|
||||||
|
* python-build: Update default setuptools version (0.7.2 -> 0.9.7)
|
||||||
|
|
||||||
|
#### 0.4.0-20130613
|
||||||
|
|
||||||
|
* pyenv: Changed versioning schema. There are two parts; the former is the base rbenv version, and the latter is the date of release.
|
||||||
|
* python-build: Add `--debug` option to build CPython with debug symbols. (#11)
|
||||||
|
* python-build: Add new CPython versions: 2.7.4, 2.7.5, 3.2.4, 3.2.5, 3.3.1, 3.3.2 (#12, #17)
|
||||||
|
* python-build: Add `svnversion` patch for old CPython versions (#14)
|
||||||
|
* python-build: Enable mirror by default for faster download (#20)
|
||||||
|
* python-build: Add `OPENSSL_NO_SSL2` patch for old CPython versions (#22)
|
||||||
|
* python-build: Install GNU Readline on Darwin if the system one is broken (#23)
|
||||||
|
* python-build: Bundle patches in `${PYTHON_BUILD_ROOT}/share/python-build/patches` and improve patching mechanism (`apply_patches`).
|
||||||
|
* python-build: Verify native extensions after building. (`build_package_verify_py*`)
|
||||||
|
* python-build: Add `install_hg` to install package from Mercurial repository
|
||||||
|
* python-build: Support building Jython and PyPy.
|
||||||
|
* python-build: Add new CPython development versions: 2.6-dev, 2.7-dev, 3.1-dev, 3.2-dev, 3.3-dev, 3.4-dev
|
||||||
|
* python-build: Add new Jython development versions: jython-2.5.4-rc1, jython-2.5-dev, jython-2.7-beta1, jython-dev
|
||||||
|
* python-build: Add new PyPy versions: pypy-1.5{,-src}, pypy-1.6, pypy-1.7, pypy-2.0{,-src}, pypy-2.0.1{,-src}, pypy-2.0.2{,-src}
|
||||||
|
* python-build: Add new PyPy development versions: pypy-1.7-dev, pypy-1.8-dev, pypy-1.9-dev, pypy-2.0-dev, pypy-dev, pypy-py3k-dev
|
||||||
|
* python-build: Add new Stackless development versions: stackless-2.7-dev, stackless-3.2-dev, stackless-3.3-dev, stackless-dev
|
||||||
|
* python-build: Update default pip version (1.2.1 -> 1.3.1)
|
||||||
|
* python-build: Update default setuptools version (0.6.34 (distribute) -> 0.7.2 ([new setuptools](https://bitbucket.org/pypa/setuptools)))
|
||||||
|
|
||||||
|
#### 0.2.0 (February 18, 2013)
|
||||||
|
|
||||||
|
* Import changes from rbenv 0.4.0.
|
||||||
|
|
||||||
|
#### 0.1.2 (October 23, 2012)
|
||||||
|
|
||||||
|
* Add push/pop for version stack management.
|
||||||
|
* Support multiple versions via environment variable.
|
||||||
|
* Now GCC is not a requirement to build CPython and Stackless.
|
||||||
|
|
||||||
|
#### 0.1.1 (September 3, 2012)
|
||||||
|
|
||||||
|
* Support multiple versions of Python at a time.
|
||||||
|
|
||||||
|
#### 0.1.0 (August 31, 2012)
|
||||||
|
|
||||||
|
* Initial public release.
|
||||||
286
COMMANDS.md
Normal file
286
COMMANDS.md
Normal file
@@ -0,0 +1,286 @@
|
|||||||
|
# Command Reference
|
||||||
|
|
||||||
|
Like `git`, the `pyenv` command delegates to subcommands based on its
|
||||||
|
first argument.
|
||||||
|
|
||||||
|
The most common subcommands are:
|
||||||
|
|
||||||
|
* [`pyenv commands`](#pyenv-commands)
|
||||||
|
* [`pyenv local`](#pyenv-local)
|
||||||
|
* [`pyenv global`](#pyenv-global)
|
||||||
|
* [`pyenv shell`](#pyenv-shell)
|
||||||
|
* [`pyenv install`](#pyenv-install)
|
||||||
|
* [`pyenv uninstall`](#pyenv-uninstall)
|
||||||
|
* [`pyenv rehash`](#pyenv-rehash)
|
||||||
|
* [`pyenv version`](#pyenv-version)
|
||||||
|
* [`pyenv versions`](#pyenv-versions)
|
||||||
|
* [`pyenv which`](#pyenv-which)
|
||||||
|
* [`pyenv whence`](#pyenv-whence)
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv commands`
|
||||||
|
|
||||||
|
Lists all available pyenv commands.
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv local`
|
||||||
|
|
||||||
|
Sets a local application-specific Python version by writing the version
|
||||||
|
name to a `.python-version` file in the current directory. This version
|
||||||
|
overrides the global version, and can be overridden itself by setting
|
||||||
|
the `PYENV_VERSION` environment variable or with the `pyenv shell`
|
||||||
|
command.
|
||||||
|
|
||||||
|
$ pyenv local 2.7.6
|
||||||
|
|
||||||
|
When run without a version number, `pyenv local` reports the currently
|
||||||
|
configured local version. You can also unset the local version:
|
||||||
|
|
||||||
|
$ pyenv local --unset
|
||||||
|
|
||||||
|
Previous versions of pyenv stored local version specifications in a
|
||||||
|
file named `.pyenv-version`. For backwards compatibility, pyenv will
|
||||||
|
read a local version specified in an `.pyenv-version` file, but a
|
||||||
|
`.python-version` file in the same directory will take precedence.
|
||||||
|
|
||||||
|
|
||||||
|
### `pyenv local` (advanced)
|
||||||
|
|
||||||
|
You can specify multiple versions as local Python at once.
|
||||||
|
|
||||||
|
Let's say if you have two versions of 2.7.6 and 3.3.3. If you prefer 2.7.6 over 3.3.3,
|
||||||
|
|
||||||
|
$ pyenv local 2.7.6 3.3.3
|
||||||
|
$ pyenv versions
|
||||||
|
system
|
||||||
|
* 2.7.6 (set by /Users/yyuu/path/to/project/.python-version)
|
||||||
|
* 3.3.3 (set by /Users/yyuu/path/to/project/.python-version)
|
||||||
|
$ python --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python2.7 --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python3.3 --version
|
||||||
|
Python 3.3.3
|
||||||
|
|
||||||
|
or, if you prefer 3.3.3 over 2.7.6,
|
||||||
|
|
||||||
|
$ pyenv local 3.3.3 2.7.6
|
||||||
|
$ pyenv versions
|
||||||
|
system
|
||||||
|
* 2.7.6 (set by /Users/yyuu/path/to/project/.python-version)
|
||||||
|
* 3.3.3 (set by /Users/yyuu/path/to/project/.python-version)
|
||||||
|
venv27
|
||||||
|
$ python --version
|
||||||
|
Python 3.3.3
|
||||||
|
$ python2.7 --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python3.3 --version
|
||||||
|
Python 3.3.3
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv global`
|
||||||
|
|
||||||
|
Sets the global version of Python to be used in all shells by writing
|
||||||
|
the version name to the `~/.pyenv/version` file. This version can be
|
||||||
|
overridden by an application-specific `.python-version` file, or by
|
||||||
|
setting the `PYENV_VERSION` environment variable.
|
||||||
|
|
||||||
|
$ pyenv global 2.7.6
|
||||||
|
|
||||||
|
The special version name `system` tells pyenv to use the system Python
|
||||||
|
(detected by searching your `$PATH`).
|
||||||
|
|
||||||
|
When run without a version number, `pyenv global` reports the
|
||||||
|
currently configured global version.
|
||||||
|
|
||||||
|
|
||||||
|
### `pyenv global` (advanced)
|
||||||
|
|
||||||
|
You can specify multiple versions as global Python at once.
|
||||||
|
|
||||||
|
Let's say if you have two versions of 2.7.6 and 3.3.3. If you prefer 2.7.6 over 3.3.3,
|
||||||
|
|
||||||
|
$ pyenv global 2.7.6 3.3.3
|
||||||
|
$ pyenv versions
|
||||||
|
system
|
||||||
|
* 2.7.6 (set by /Users/yyuu/.pyenv/version)
|
||||||
|
* 3.3.3 (set by /Users/yyuu/.pyenv/version)
|
||||||
|
$ python --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python2.7 --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python3.3 --version
|
||||||
|
Python 3.3.3
|
||||||
|
|
||||||
|
or, if you prefer 3.3.3 over 2.7.6,
|
||||||
|
|
||||||
|
$ pyenv global 3.3.3 2.7.6
|
||||||
|
$ pyenv versions
|
||||||
|
system
|
||||||
|
* 2.7.6 (set by /Users/yyuu/.pyenv/version)
|
||||||
|
* 3.3.3 (set by /Users/yyuu/.pyenv/version)
|
||||||
|
venv27
|
||||||
|
$ python --version
|
||||||
|
Python 3.3.3
|
||||||
|
$ python2.7 --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python3.3 --version
|
||||||
|
Python 3.3.3
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv shell`
|
||||||
|
|
||||||
|
Sets a shell-specific Python version by setting the `PYENV_VERSION`
|
||||||
|
environment variable in your shell. This version overrides
|
||||||
|
application-specific versions and the global version.
|
||||||
|
|
||||||
|
$ pyenv shell pypy-2.2.1
|
||||||
|
|
||||||
|
When run without a version number, `pyenv shell` reports the current
|
||||||
|
value of `PYENV_VERSION`. You can also unset the shell version:
|
||||||
|
|
||||||
|
$ pyenv shell --unset
|
||||||
|
|
||||||
|
Note that you'll need pyenv's shell integration enabled (step 3 of
|
||||||
|
the installation instructions) in order to use this command. If you
|
||||||
|
prefer not to use shell integration, you may simply set the
|
||||||
|
`PYENV_VERSION` variable yourself:
|
||||||
|
|
||||||
|
$ export PYENV_VERSION=pypy-2.2.1
|
||||||
|
|
||||||
|
|
||||||
|
### `pyenv shell` (advanced)
|
||||||
|
|
||||||
|
You can specify multiple versions via `PYENV_VERSION` at once.
|
||||||
|
|
||||||
|
Let's say if you have two versions of 2.7.6 and 3.3.3. If you prefer 2.7.6 over 3.3.3,
|
||||||
|
|
||||||
|
$ pyenv shell 2.7.6 3.3.3
|
||||||
|
$ pyenv versions
|
||||||
|
system
|
||||||
|
* 2.7.6 (set by PYENV_VERSION environment variable)
|
||||||
|
* 3.3.3 (set by PYENV_VERSION environment variable)
|
||||||
|
$ python --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python2.7 --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python3.3 --version
|
||||||
|
Python 3.3.3
|
||||||
|
|
||||||
|
or, if you prefer 3.3.3 over 2.7.6,
|
||||||
|
|
||||||
|
$ pyenv shell 3.3.3 2.7.6
|
||||||
|
$ pyenv versions
|
||||||
|
system
|
||||||
|
* 2.7.6 (set by PYENV_VERSION environment variable)
|
||||||
|
* 3.3.3 (set by PYENV_VERSION environment variable)
|
||||||
|
venv27
|
||||||
|
$ python --version
|
||||||
|
Python 3.3.3
|
||||||
|
$ python2.7 --version
|
||||||
|
Python 2.7.6
|
||||||
|
$ python3.3 --version
|
||||||
|
Python 3.3.3
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv install`
|
||||||
|
|
||||||
|
Install a Python version (using `python-build`).
|
||||||
|
|
||||||
|
Usage: pyenv install [-f] [-kvp] <version>
|
||||||
|
pyenv install [-f] [-kvp] <definition-file>
|
||||||
|
pyenv install -l|--list
|
||||||
|
|
||||||
|
-l/--list List all available versions
|
||||||
|
-f/--force Install even if the version appears to be installed already
|
||||||
|
|
||||||
|
python-build options:
|
||||||
|
|
||||||
|
-k/--keep Keep source tree in $PYENV_BUILD_ROOT after installation
|
||||||
|
(defaults to $PYENV_ROOT/sources)
|
||||||
|
-v/--verbose Verbose mode: print compilation status to stdout
|
||||||
|
-p/--patch Apply a patch from stdin before building
|
||||||
|
-g/--debug Build a debug version
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv uninstall`
|
||||||
|
|
||||||
|
Uninstall a specific Python version.
|
||||||
|
|
||||||
|
Usage: pyenv uninstall [-f|--force] <version>
|
||||||
|
|
||||||
|
-f Attempt to remove the specified version without prompting
|
||||||
|
for confirmation. If the version does not exist, do not
|
||||||
|
display an error message.
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv rehash`
|
||||||
|
|
||||||
|
Installs shims for all Python binaries known to pyenv (i.e.,
|
||||||
|
`~/.pyenv/versions/*/bin/*`). Run this command after you install a new
|
||||||
|
version of Python, or install a package that provides binaries.
|
||||||
|
|
||||||
|
$ pyenv rehash
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv version`
|
||||||
|
|
||||||
|
Displays the currently active Python version, along with information on
|
||||||
|
how it was set.
|
||||||
|
|
||||||
|
$ pyenv version
|
||||||
|
2.7.6 (set by /home/yyuu/.pyenv/version)
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv versions`
|
||||||
|
|
||||||
|
Lists all Python versions known to pyenv, and shows an asterisk next to
|
||||||
|
the currently active version.
|
||||||
|
|
||||||
|
$ pyenv versions
|
||||||
|
2.5.6
|
||||||
|
2.6.8
|
||||||
|
* 2.7.6 (set by /home/yyuu/.pyenv/version)
|
||||||
|
3.3.3
|
||||||
|
jython-2.5.3
|
||||||
|
pypy-2.2.1
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv which`
|
||||||
|
|
||||||
|
Displays the full path to the executable that pyenv will invoke when
|
||||||
|
you run the given command.
|
||||||
|
|
||||||
|
$ pyenv which python3.3
|
||||||
|
/home/yyuu/.pyenv/versions/3.3.3/bin/python3.3
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv whence`
|
||||||
|
|
||||||
|
Lists all Python versions with the given command installed.
|
||||||
|
|
||||||
|
$ pyenv whence 2to3
|
||||||
|
2.6.8
|
||||||
|
2.7.6
|
||||||
|
3.3.3
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv install`
|
||||||
|
|
||||||
|
Part of [Python-build](https://github.com/yyuu/pyenv/tree/master/plugins/python-build), this installs versions of python
|
||||||
|
|
||||||
|
$ pyenv install 2.7.6
|
||||||
|
$ pyenv install 2.6.8
|
||||||
|
$ pyenv versions
|
||||||
|
system
|
||||||
|
2.6.8
|
||||||
|
* 2.7.6 (set by /home/yyuu/.pyenv/version)
|
||||||
|
|
||||||
|
|
||||||
|
## `pyenv install --list`
|
||||||
|
|
||||||
|
List available remote versions of Python, including Anaconda, Jython, pypy, and stackless
|
||||||
|
|
||||||
|
$ pyenv install --list
|
||||||
|
|
||||||
|
|
||||||
3
LICENSE
3
LICENSE
@@ -1,4 +1,5 @@
|
|||||||
Copyright (c) 2011 Sam Stephenson
|
Copyright (c) 2013 Yamashita, Yuu
|
||||||
|
Copyright (c) 2013 Sam Stephenson
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
|
|||||||
12
Makefile
Normal file
12
Makefile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
.PHONY: test
|
||||||
|
|
||||||
|
# Do not pass in user flags to build tests.
|
||||||
|
unexport PYTHON_CFLAGS
|
||||||
|
unexport PYTHON_CONFIGURE_OPTS
|
||||||
|
|
||||||
|
test: bats
|
||||||
|
PATH="./bats/bin:$$PATH" test/run
|
||||||
|
cd plugins/python-build && $(PWD)/bats/bin/bats $${CI:+--tap} test
|
||||||
|
|
||||||
|
bats:
|
||||||
|
git clone https://github.com/sstephenson/bats.git
|
||||||
590
README.md
590
README.md
@@ -1,396 +1,384 @@
|
|||||||
# Simple Ruby Version Management: rbenv
|
# Simple Python Version Management: pyenv
|
||||||
|
|
||||||
rbenv lets you easily switch between multiple versions of Ruby. It's
|
[](https://gitter.im/yyuu/pyenv?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
|
||||||
|
[](https://travis-ci.org/yyuu/pyenv)
|
||||||
|
|
||||||
|
pyenv lets you easily switch between multiple versions of Python. It's
|
||||||
simple, unobtrusive, and follows the UNIX tradition of single-purpose
|
simple, unobtrusive, and follows the UNIX tradition of single-purpose
|
||||||
tools that do one thing well.
|
tools that do one thing well.
|
||||||
|
|
||||||
<img src="http://i.sstephenson.us/rbenv.png" width="894" height="464">
|
This project was forked from [rbenv](https://github.com/rbenv/rbenv) and
|
||||||
|
[ruby-build](https://github.com/rbenv/ruby-build), and modified for Python.
|
||||||
|
|
||||||
### rbenv _does…_
|
<img src="https://i.gyazo.com/699a58927b77e46e71cd674c7fc7a78d.png" width="735" height="490" />
|
||||||
|
|
||||||
* Let you **change the global Ruby version** on a per-user basis.
|
|
||||||
* Provide support for **per-project Ruby versions**.
|
### pyenv _does..._
|
||||||
* Allow you to **override the Ruby version** with an environment
|
|
||||||
|
* Let you **change the global Python version** on a per-user basis.
|
||||||
|
* Provide support for **per-project Python versions**.
|
||||||
|
* Allow you to **override the Python version** with an environment
|
||||||
variable.
|
variable.
|
||||||
|
* Search commands from **multiple versions of Python at a time**.
|
||||||
|
This may be helpful to test across Python versions with [tox](https://pypi.python.org/pypi/tox).
|
||||||
|
|
||||||
### In contrast with rvm, rbenv _does not…_
|
|
||||||
|
|
||||||
* **Need to be loaded into your shell.** Instead, rbenv's shim
|
### In contrast with pythonbrew and pythonz, pyenv _does not..._
|
||||||
|
|
||||||
|
* **Depend on Python itself.** pyenv was made from pure shell scripts.
|
||||||
|
There is no bootstrap problem of Python.
|
||||||
|
* **Need to be loaded into your shell.** Instead, pyenv's shim
|
||||||
approach works by adding a directory to your `$PATH`.
|
approach works by adding a directory to your `$PATH`.
|
||||||
* **Override shell commands like `cd`.** That's dangerous and
|
* **Manage virtualenv.** Of course, you can create [virtualenv](https://pypi.python.org/pypi/virtualenv)
|
||||||
error-prone.
|
yourself, or [pyenv-virtualenv](https://github.com/yyuu/pyenv-virtualenv)
|
||||||
* **Have a configuration file.** There's nothing to configure except
|
to automate the process.
|
||||||
which version of Ruby you want to use.
|
|
||||||
* **Install Ruby.** You can build and install Ruby yourself, or use
|
|
||||||
[ruby-build](https://github.com/sstephenson/ruby-build) to
|
----
|
||||||
automate the process.
|
|
||||||
* **Manage gemsets.** [Bundler](http://gembundler.com/) is a better
|
|
||||||
way to manage application dependencies. If you have projects that
|
|
||||||
are not yet using Bundler you can install the
|
|
||||||
[rbenv-gemset](https://github.com/jamis/rbenv-gemset) plugin.
|
|
||||||
* **Require changes to Ruby libraries for compatibility.** The
|
|
||||||
simplicity of rbenv means as long as it's in your `$PATH`,
|
|
||||||
[nothing](https://rvm.beginrescueend.com/integration/bundler/)
|
|
||||||
[else](https://rvm.beginrescueend.com/integration/capistrano/)
|
|
||||||
needs to know about it.
|
|
||||||
* **Prompt you with warnings when you switch to a project.** Instead
|
|
||||||
of executing arbitrary code, rbenv reads just the version name
|
|
||||||
from each project. There's nothing to "trust."
|
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
* [1 How It Works](#section_1)
|
* **[How It Works](#how-it-works)**
|
||||||
* [2 Installation](#section_2)
|
* [Understanding PATH](#understanding-path)
|
||||||
* [2.1 Basic GitHub Checkout](#section_2.1)
|
* [Understanding Shims](#understanding-shims)
|
||||||
* [2.1.1 Upgrading](#section_2.1.1)
|
* [Choosing the Python Version](#choosing-the-python-version)
|
||||||
* [2.2 Homebrew on Mac OS X](#section_2.2)
|
* [Locating the Python Installation](#locating-the-python-installation)
|
||||||
* [2.3 Neckbeard Configuration](#section_2.3)
|
* **[Installation](#installation)**
|
||||||
* [3 Usage](#section_3)
|
* [Basic GitHub Checkout](#basic-github-checkout)
|
||||||
* [3.1 rbenv global](#section_3.1)
|
* [Upgrading](#upgrading)
|
||||||
* [3.2 rbenv local](#section_3.2)
|
* [Homebrew on Mac OS X](#homebrew-on-mac-os-x)
|
||||||
* [3.3 rbenv shell](#section_3.3)
|
* [Advanced Configuration](#advanced-configuration)
|
||||||
* [3.4 rbenv versions](#section_3.4)
|
* [Uninstalling Python Versions](#uninstalling-python-versions)
|
||||||
* [3.5 rbenv version](#section_3.5)
|
* **[Command Reference](#command-reference)**
|
||||||
* [3.6 rbenv rehash](#section_3.6)
|
* **[Development](#development)**
|
||||||
* [3.7 rbenv which](#section_3.7)
|
* [Version History](#version-history)
|
||||||
* [3.8 rbenv whence](#section_3.8)
|
* [License](#license)
|
||||||
* [4 Development](#section_4)
|
|
||||||
* [4.1 Version History](#section_4.1)
|
|
||||||
* [4.2 License](#section_4.2)
|
|
||||||
|
|
||||||
## <a name="section_1"></a> 1 How It Works
|
|
||||||
|
|
||||||
rbenv operates on the per-user directory `~/.rbenv`. Version names in
|
----
|
||||||
rbenv correspond to subdirectories of `~/.rbenv/versions`. For
|
|
||||||
example, you might have `~/.rbenv/versions/1.8.7-p354` and
|
|
||||||
`~/.rbenv/versions/1.9.3-rc1`.
|
|
||||||
|
|
||||||
Each version is a working tree with its own binaries, like
|
|
||||||
`~/.rbenv/versions/1.8.7-p354/bin/ruby` and
|
|
||||||
`~/.rbenv/versions/1.9.3-rc1/bin/irb`. rbenv makes _shim binaries_
|
|
||||||
for every such binary across all installed versions of Ruby.
|
|
||||||
|
|
||||||
These shims are simple wrapper scripts that live in `~/.rbenv/shims`
|
## How It Works
|
||||||
and detect which Ruby version you want to use. They insert the
|
|
||||||
directory for the selected version at the beginning of your `$PATH`
|
|
||||||
and then execute the corresponding binary.
|
|
||||||
|
|
||||||
Because of the simplicity of the shim approach, all you need to use
|
At a high level, pyenv intercepts Python commands using shim
|
||||||
rbenv is `~/.rbenv/shims` in your `$PATH`.
|
executables injected into your `PATH`, determines which Python version
|
||||||
|
has been specified by your application, and passes your commands along
|
||||||
|
to the correct Python installation.
|
||||||
|
|
||||||
## <a name="section_2"></a> 2 Installation
|
|
||||||
|
|
||||||
**Compatibility note**: rbenv is _incompatible_ with rvm. Things will
|
### Understanding PATH
|
||||||
appear to work until you try to install a gem. The problem is that
|
|
||||||
rvm actually overrides the `gem` command with a shell function!
|
|
||||||
Please remove any references to rvm before using rbenv.
|
|
||||||
|
|
||||||
### <a name="section_2.1"></a> 2.1 Basic GitHub Checkout
|
When you run a command like `python` or `pip`, your operating system
|
||||||
|
searches through a list of directories to find an executable file with
|
||||||
|
that name. This list of directories lives in an environment variable
|
||||||
|
called `PATH`, with each directory in the list separated by a colon:
|
||||||
|
|
||||||
This will get you going with the latest version of rbenv and make it
|
/usr/local/bin:/usr/bin:/bin
|
||||||
|
|
||||||
|
Directories in `PATH` are searched from left to right, so a matching
|
||||||
|
executable in a directory at the beginning of the list takes
|
||||||
|
precedence over another one at the end. In this example, the
|
||||||
|
`/usr/local/bin` directory will be searched first, then `/usr/bin`,
|
||||||
|
then `/bin`.
|
||||||
|
|
||||||
|
|
||||||
|
### Understanding Shims
|
||||||
|
|
||||||
|
pyenv works by inserting a directory of _shims_ at the front of your
|
||||||
|
`PATH`:
|
||||||
|
|
||||||
|
~/.pyenv/shims:/usr/local/bin:/usr/bin:/bin
|
||||||
|
|
||||||
|
Through a process called _rehashing_, pyenv maintains shims in that
|
||||||
|
directory to match every Python command across every installed version
|
||||||
|
of Python—`python`, `pip`, and so on.
|
||||||
|
|
||||||
|
Shims are lightweight executables that simply pass your command along
|
||||||
|
to pyenv. So with pyenv installed, when you run, say, `pip`, your
|
||||||
|
operating system will do the following:
|
||||||
|
|
||||||
|
* Search your `PATH` for an executable file named `pip`
|
||||||
|
* Find the pyenv shim named `pip` at the beginning of your `PATH`
|
||||||
|
* Run the shim named `pip`, which in turn passes the command along to
|
||||||
|
pyenv
|
||||||
|
|
||||||
|
|
||||||
|
### Choosing the Python Version
|
||||||
|
|
||||||
|
When you execute a shim, pyenv determines which Python version to use by
|
||||||
|
reading it from the following sources, in this order:
|
||||||
|
|
||||||
|
1. The `PYENV_VERSION` environment variable (if specified). You can use
|
||||||
|
the [`pyenv shell`](https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-shell) command to set this environment
|
||||||
|
variable in your current shell session.
|
||||||
|
|
||||||
|
2. The application-specific `.python-version` file in the current
|
||||||
|
directory (if present). You can modify the current directory's
|
||||||
|
`.python-version` file with the [`pyenv local`](https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-local)
|
||||||
|
command.
|
||||||
|
|
||||||
|
3. The first `.python-version` file found (if any) by searching each parent
|
||||||
|
directory, until reaching the root of your filesystem.
|
||||||
|
|
||||||
|
4. The global `~/.pyenv/version` file. You can modify this file using
|
||||||
|
the [`pyenv global`](https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-global) command. If the global version
|
||||||
|
file is not present, pyenv assumes you want to use the "system"
|
||||||
|
Python. (In other words, whatever version would run if pyenv weren't in your
|
||||||
|
`PATH`.)
|
||||||
|
|
||||||
|
**NOTE:** You can activate multiple versions at the same time, including multiple
|
||||||
|
versions of Python2 or Python3 simultaneously. This allows for parallel usage of
|
||||||
|
Python2 and Python3, and is required with tools like `tox`. For example, to set
|
||||||
|
your path to first use your `system` Python and Python3 (set to 2.7.9 and 3.4.2
|
||||||
|
in this example), but also have Python 3.3.6, 3.2, and 2.5 available on your
|
||||||
|
`PATH`, one would first `pyenv install` the missing versions, then set `pyenv
|
||||||
|
global system 3.3.6 3.2 2.5`. At this point, one should be able to find the full
|
||||||
|
executable path to each of these using `pyenv which`, e.g. `pyenv which python2.5`
|
||||||
|
(should display `$PYENV_ROOT/versions/2.5/bin/python2.5`), or `pyenv which
|
||||||
|
python3.4` (should display path to system Python3).
|
||||||
|
|
||||||
|
### Locating the Python Installation
|
||||||
|
|
||||||
|
Once pyenv has determined which version of Python your application has
|
||||||
|
specified, it passes the command along to the corresponding Python
|
||||||
|
installation.
|
||||||
|
|
||||||
|
Each Python version is installed into its own directory under
|
||||||
|
`~/.pyenv/versions`.
|
||||||
|
|
||||||
|
For example, you might have these versions installed:
|
||||||
|
|
||||||
|
* `~/.pyenv/versions/2.7.8/`
|
||||||
|
* `~/.pyenv/versions/3.4.2/`
|
||||||
|
* `~/.pyenv/versions/pypy-2.4.0/`
|
||||||
|
|
||||||
|
As far as pyenv is concerned, version names are simply the directories in
|
||||||
|
`~/.pyenv/versions`.
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
If you're on Mac OS X, consider [installing with Homebrew](#homebrew-on-mac-os-x).
|
||||||
|
|
||||||
|
|
||||||
|
### The automatic installer
|
||||||
|
|
||||||
|
Visit my other project:
|
||||||
|
https://github.com/yyuu/pyenv-installer
|
||||||
|
|
||||||
|
|
||||||
|
### Basic GitHub Checkout
|
||||||
|
|
||||||
|
This will get you going with the latest version of pyenv and make it
|
||||||
easy to fork and contribute any changes back upstream.
|
easy to fork and contribute any changes back upstream.
|
||||||
|
|
||||||
1. Check out rbenv into `~/.rbenv`.
|
1. **Check out pyenv where you want it installed.**
|
||||||
|
A good place to choose is `$HOME/.pyenv` (but you can install it somewhere else).
|
||||||
|
|
||||||
$ cd
|
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
|
||||||
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
|
|
||||||
|
|
||||||
2. Add `~/.rbenv/bin` to your `$PATH` for access to the `rbenv`
|
|
||||||
command-line utility.
|
|
||||||
|
|
||||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
|
2. **Define environment variable `PYENV_ROOT`** to point to the path where
|
||||||
|
pyenv repo is cloned and add `$PYENV_ROOT/bin` to your `$PATH` for access
|
||||||
|
to the `pyenv` command-line utility.
|
||||||
|
|
||||||
**Zsh note**: Modifiy your `~/.zshrc` file instead of `~/.bash_profile`.
|
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
|
||||||
|
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
|
||||||
|
|
||||||
3. Add rbenv init to your shell to enable shims and autocompletion.
|
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
||||||
|
**Ubuntu note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.
|
||||||
|
|
||||||
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
3. **Add `pyenv init` to your shell** to enable shims and autocompletion.
|
||||||
|
Please make sure `eval "$(pyenv init -)"` is placed toward the end of the shell
|
||||||
|
configuration file since it manipulates `PATH` during the initialization.
|
||||||
|
|
||||||
**Zsh note**: Modifiy your `~/.zshrc` file instead of `~/.bash_profile`.
|
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
|
||||||
|
|
||||||
4. Restart your shell so the path changes take effect. You can now
|
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
||||||
begin using rbenv.
|
**Ubuntu note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.
|
||||||
|
|
||||||
|
**General warning**: There are some systems where the `BASH_ENV` variable is configured
|
||||||
|
to point to `.bashrc`. On such systems you should almost certainly put the abovementioned line
|
||||||
|
`eval "$(pyenv init -)` into `.bash_profile`, and **not** into `.bashrc`. Otherwise you
|
||||||
|
may observe strange behaviour, such as `pyenv` getting into an infinite loop.
|
||||||
|
See [#264](https://github.com/yyuu/pyenv/issues/264) for details.
|
||||||
|
|
||||||
|
4. **Restart your shell so the path changes take effect.**
|
||||||
|
You can now begin using pyenv.
|
||||||
|
|
||||||
$ exec $SHELL
|
$ exec $SHELL
|
||||||
|
|
||||||
5. Install Ruby versions into `~/.rbenv/versions`. For example, to
|
5. **Install Python versions into `$PYENV_ROOT/versions`.**
|
||||||
install Ruby 1.9.2-p290, download and unpack the source, then run:
|
For example, to download and install Python 2.7.8, run:
|
||||||
|
|
||||||
$ ./configure --prefix=$HOME/.rbenv/versions/1.9.2-p290
|
$ pyenv install 2.7.8
|
||||||
$ make
|
|
||||||
$ make install
|
|
||||||
|
|
||||||
The [ruby-build](https://github.com/sstephenson/ruby-build) project
|
**NOTE:** If you need to pass configure option to build, please use
|
||||||
provides an `rbenv install` command that simplifies the process of
|
```CONFIGURE_OPTS``` environment variable.
|
||||||
installing new Ruby versions to:
|
|
||||||
|
**NOTE:** If you want to use proxy to download, please use `http_proxy` and `https_proxy`
|
||||||
|
environment variable.
|
||||||
|
|
||||||
$ rbenv install 1.9.2-p290
|
**NOTE:** If you are having trouble installing a python version,
|
||||||
|
please visit the wiki page about
|
||||||
|
[Common Build Problems](https://github.com/yyuu/pyenv/wiki/Common-build-problems)
|
||||||
|
|
||||||
6. Rebuild the shim binaries. You should do this any time you install
|
6. **Rebuild the shim binaries.**
|
||||||
a new Ruby binary (for example, when installing a new Ruby version,
|
You should do this any time you install a new Python binary.
|
||||||
or when installing a gem that provides a binary).
|
(Examples: installing a new Python version, or installing a package that provides a binary.)
|
||||||
|
|
||||||
$ rbenv rehash
|
$ pyenv rehash
|
||||||
|
|
||||||
#### <a name="section_2.1.1"></a> 2.1.1 Upgrading
|
This can be automated for pip using
|
||||||
|
[pyenv-pip-rehash](https://github.com/yyuu/pyenv-pip-rehash), which invokes
|
||||||
|
`pyenv rehash` after (un)installing packages using pip.
|
||||||
|
|
||||||
If you've installed rbenv using the instructions above, you can
|
|
||||||
|
#### Upgrading
|
||||||
|
|
||||||
|
If you've installed pyenv using the instructions above, you can
|
||||||
upgrade your installation at any time using git.
|
upgrade your installation at any time using git.
|
||||||
|
|
||||||
To upgrade to the latest development version of rbenv, use `git pull`:
|
To upgrade to the latest development version of pyenv, use `git pull`:
|
||||||
|
|
||||||
$ cd ~/.rbenv
|
$ cd ~/.pyenv
|
||||||
$ git pull
|
$ git pull
|
||||||
|
|
||||||
To upgrade to a specific release of rbenv, check out the corresponding
|
To upgrade to a specific release of pyenv, check out the corresponding tag:
|
||||||
tag:
|
|
||||||
|
|
||||||
$ cd ~/.rbenv
|
$ cd ~/.pyenv
|
||||||
$ git fetch
|
$ git fetch
|
||||||
$ git tag
|
$ git tag
|
||||||
v0.1.0
|
v0.1.0
|
||||||
v0.1.1
|
$ git checkout v0.1.0
|
||||||
v0.1.2
|
|
||||||
v0.2.0
|
|
||||||
$ git checkout v0.2.0
|
|
||||||
|
|
||||||
### <a name="section_2.2"></a> 2.2 Homebrew on Mac OS X
|
### Uninstalling pyenv
|
||||||
|
|
||||||
You can also install rbenv using the
|
The simplicity of pyenv makes it easy to temporarily disable it, or
|
||||||
[Homebrew](http://mxcl.github.com/homebrew/) package manager on Mac OS
|
uninstall from the system.
|
||||||
X.
|
|
||||||
|
1. To **disable** pyenv managing your Python versions, simply remove the
|
||||||
|
`pyenv init` line from your shell startup configuration. This will
|
||||||
|
remove pyenv shims directory from PATH, and future invocations like
|
||||||
|
`python` will execute the system Python version, as before pyenv.
|
||||||
|
|
||||||
|
`pyenv` will still be accessible on the command line, but your Python
|
||||||
|
apps won't be affected by version switching.
|
||||||
|
|
||||||
|
2. To completely **uninstall** pyenv, perform step (1) and then remove
|
||||||
|
its root directory. This will **delete all Python versions** that were
|
||||||
|
installed under `` `pyenv root`/versions/ `` directory:
|
||||||
|
|
||||||
|
rm -rf `pyenv root`
|
||||||
|
|
||||||
|
If you've installed pyenv using a package manager, as a final step
|
||||||
|
perform the pyenv package removal. For instance, for Homebrew:
|
||||||
|
|
||||||
|
brew uninstall pyenv
|
||||||
|
|
||||||
|
## Command Reference
|
||||||
|
|
||||||
|
### Homebrew on Mac OS X
|
||||||
|
|
||||||
|
You can also install pyenv using the [Homebrew](http://brew.sh)
|
||||||
|
package manager for Mac OS X.
|
||||||
|
|
||||||
$ brew update
|
$ brew update
|
||||||
$ brew install rbenv
|
$ brew install pyenv
|
||||||
$ brew install ruby-build
|
|
||||||
|
|
||||||
The same commands can be used for upgrading.
|
|
||||||
|
|
||||||
Afterwards you'll still need to add `eval "$(rbenv init -)"` to your
|
To upgrade pyenv in the future, use `upgrade` instead of `install`.
|
||||||
profile as stated in the caveats. You'll only ever have to do this
|
|
||||||
once.
|
|
||||||
|
|
||||||
### <a name="section_2.3"></a> 2.3 Neckbeard Configuration
|
After installation, you'll need to add `eval "$(pyenv init -)"` to your profile (as stated in the caveats displayed by Homebrew — to display them again, use `brew info pyenv`). You only need to add that to your profile once.
|
||||||
|
|
||||||
|
Then follow the rest of the post-installation steps under "Basic GitHub Checkout" above, starting with #4 ("restart your shell so the path changes take effect").
|
||||||
|
|
||||||
|
### Advanced Configuration
|
||||||
|
|
||||||
Skip this section unless you must know what every line in your shell
|
Skip this section unless you must know what every line in your shell
|
||||||
profile is doing.
|
profile is doing.
|
||||||
|
|
||||||
`rbenv init` is the only command that crosses the line of loading
|
`pyenv init` is the only command that crosses the line of loading
|
||||||
extra commands into your shell. Coming from rvm, some of you might be
|
extra commands into your shell. Coming from rvm, some of you might be
|
||||||
opposed to this idea. Here's what `rbenv init` actually does:
|
opposed to this idea. Here's what `pyenv init` actually does:
|
||||||
|
|
||||||
1. Sets up your shims path. This is the only requirement for rbenv to
|
1. **Sets up your shims path.** This is the only requirement for pyenv to
|
||||||
function properly. You can do this by hand by prepending
|
function properly. You can do this by hand by prepending
|
||||||
`~/.rbenv/shims` to your `$PATH`.
|
`~/.pyenv/shims` to your `$PATH`.
|
||||||
|
|
||||||
2. Installs autocompletion. This is entirely optional but pretty
|
2. **Installs autocompletion.** This is entirely optional but pretty
|
||||||
useful. Sourcing `~/.rbenv/completions/rbenv.bash` will set that
|
useful. Sourcing `~/.pyenv/completions/pyenv.bash` will set that
|
||||||
up. There is also a `~/.rbenv/completions/rbenv.zsh` for Zsh
|
up. There is also a `~/.pyenv/completions/pyenv.zsh` for Zsh
|
||||||
users.
|
users.
|
||||||
|
|
||||||
3. Rehashes shims. From time to time you'll need to rebuild your
|
3. **Rehashes shims.** From time to time you'll need to rebuild your
|
||||||
shim files. Doing this on init makes sure everything is up to
|
shim files. Doing this on init makes sure everything is up to
|
||||||
date. You can always run `rbenv rehash` manually.
|
date. You can always run `pyenv rehash` manually.
|
||||||
|
|
||||||
4. Installs the sh dispatcher. This bit is also optional, but allows
|
4. **Installs the sh dispatcher.** This bit is also optional, but allows
|
||||||
rbenv and plugins to change variables in your current shell, making
|
pyenv and plugins to change variables in your current shell, making
|
||||||
commands like `rbenv shell` possible. The sh dispatcher doesn't do
|
commands like `pyenv shell` possible. The sh dispatcher doesn't do
|
||||||
anything crazy like override `cd` or hack your shell prompt, but if
|
anything crazy like override `cd` or hack your shell prompt, but if
|
||||||
for some reason you need `rbenv` to be a real script rather than a
|
for some reason you need `pyenv` to be a real script rather than a
|
||||||
shell function, you can safely skip it.
|
shell function, you can safely skip it.
|
||||||
|
|
||||||
Run `rbenv init -` for yourself to see exactly what happens under the
|
To see exactly what happens under the hood for yourself, run `pyenv init -`.
|
||||||
hood.
|
|
||||||
|
|
||||||
## <a name="section_3"></a> 3 Usage
|
|
||||||
|
|
||||||
Like `git`, the `rbenv` command delegates to subcommands based on its
|
### Uninstalling Python Versions
|
||||||
first argument. The most common subcommands are:
|
|
||||||
|
|
||||||
### <a name="section_3.1"></a> 3.1 rbenv global
|
As time goes on, you will accumulate Python versions in your
|
||||||
|
`~/.pyenv/versions` directory.
|
||||||
|
|
||||||
Sets the global version of Ruby to be used in all shells by writing
|
To remove old Python versions, `pyenv uninstall` command to automate
|
||||||
the version name to the `~/.rbenv/version` file. This version can be
|
the removal process.
|
||||||
overridden by a per-project `.rbenv-version` file, or by setting the
|
|
||||||
`RBENV_VERSION` environment variable.
|
|
||||||
|
|
||||||
$ rbenv global 1.9.2-p290
|
Alternatively, simply `rm -rf` the directory of the version you want
|
||||||
|
to remove. You can find the directory of a particular Python version
|
||||||
|
with the `pyenv prefix` command, e.g. `pyenv prefix 2.6.8`.
|
||||||
|
|
||||||
The special version name `system` tells rbenv to use the system Ruby
|
|
||||||
(detected by searching your `$PATH`).
|
|
||||||
|
|
||||||
When run without a version number, `rbenv global` reports the
|
----
|
||||||
currently configured global version.
|
|
||||||
|
|
||||||
### <a name="section_3.2"></a> 3.2 rbenv local
|
|
||||||
|
|
||||||
Sets a local per-project Ruby version by writing the version name to
|
## Command Reference
|
||||||
an `.rbenv-version` file in the current directory. This version
|
|
||||||
overrides the global, and can be overridden itself by setting the
|
|
||||||
`RBENV_VERSION` environment variable or with the `rbenv shell`
|
|
||||||
command.
|
|
||||||
|
|
||||||
$ rbenv local rbx-1.2.4
|
See [COMMANDS.md](COMMANDS.md).
|
||||||
|
|
||||||
When run without a version number, `rbenv local` reports the currently
|
|
||||||
configured local version. You can also unset the local version:
|
|
||||||
|
|
||||||
$ rbenv local --unset
|
----
|
||||||
|
|
||||||
### <a name="section_3.3"></a> 3.3 rbenv shell
|
## Environment variables
|
||||||
|
|
||||||
Sets a shell-specific Ruby version by setting the `RBENV_VERSION`
|
You can affect how pyenv operates with the following settings:
|
||||||
environment variable in your shell. This version overrides both
|
|
||||||
project-specific versions and the global version.
|
|
||||||
|
|
||||||
$ rbenv shell jruby-1.6.4
|
name | default | description
|
||||||
|
-----|---------|------------
|
||||||
|
`PYENV_VERSION` | | Specifies the Python version to be used.<br>Also see [`pyenv shell`](#pyenv-shell)
|
||||||
|
`PYENV_ROOT` | `~/.pyenv` | Defines the directory under which Python versions and shims reside.<br>Also see `pyenv root`
|
||||||
|
`PYENV_DEBUG` | | Outputs debug information.<br>Also as: `pyenv --debug <subcommand>`
|
||||||
|
`PYENV_HOOK_PATH` | [_see wiki_][hooks] | Colon-separated list of paths searched for pyenv hooks.
|
||||||
|
`PYENV_DIR` | `$PWD` | Directory to start searching for `.python-version` files.
|
||||||
|
|
||||||
When run without a version number, `rbenv shell` reports the current
|
## Development
|
||||||
value of `RBENV_VERSION`. You can also unset the shell version:
|
|
||||||
|
|
||||||
$ rbenv shell --unset
|
The pyenv source code is [hosted on
|
||||||
|
GitHub](https://github.com/yyuu/pyenv). It's clean, modular,
|
||||||
Note that you'll need rbenv's shell integration enabled (step 3 of
|
|
||||||
the installation instructions) in order to use this command. If you
|
|
||||||
prefer not to use shell integration, you may simply set the
|
|
||||||
`RBENV_VERSION` variable yourself:
|
|
||||||
|
|
||||||
$ export RBENV_VERSION=jruby-1.6.4
|
|
||||||
|
|
||||||
### <a name="section_3.4"></a> 3.4 rbenv versions
|
|
||||||
|
|
||||||
Lists all Ruby versions known to rbenv, and shows an asterisk next to
|
|
||||||
the currently active version.
|
|
||||||
|
|
||||||
$ rbenv versions
|
|
||||||
1.8.7-p352
|
|
||||||
1.9.2-p290
|
|
||||||
* 1.9.3-rc1 (set by /Users/sam/.rbenv/global)
|
|
||||||
jruby-1.6.4
|
|
||||||
rbx-1.2.4
|
|
||||||
ree-1.8.7-2011.03
|
|
||||||
|
|
||||||
### <a name="section_3.5"></a> 3.5 rbenv version
|
|
||||||
|
|
||||||
Displays the currently active Ruby version, along with information on
|
|
||||||
how it was set.
|
|
||||||
|
|
||||||
$ rbenv version
|
|
||||||
1.8.7-p352 (set by /Volumes/37signals/basecamp/.rbenv-version)
|
|
||||||
|
|
||||||
### <a name="section_3.6"></a> 3.6 rbenv rehash
|
|
||||||
|
|
||||||
Installs shims for all Ruby binaries known to rbenv (i.e.,
|
|
||||||
`~/.rbenv/versions/*/bin/*`). Run this command after you install a new
|
|
||||||
version of Ruby, or install a gem that provides binaries.
|
|
||||||
|
|
||||||
$ rbenv rehash
|
|
||||||
|
|
||||||
### <a name="section_3.7"></a> 3.7 rbenv which
|
|
||||||
|
|
||||||
Displays the full path to the binary that rbenv will execute when you
|
|
||||||
run the given command.
|
|
||||||
|
|
||||||
$ rbenv which irb
|
|
||||||
/Users/sam/.rbenv/versions/1.9.2-p290/bin/irb
|
|
||||||
|
|
||||||
### <a name="section_3.8"></a> 3.8 rbenv whence
|
|
||||||
|
|
||||||
Lists all Ruby versions with the given command installed.
|
|
||||||
|
|
||||||
$ rbenv whence rackup
|
|
||||||
1.9.3-rc1
|
|
||||||
jruby-1.6.4
|
|
||||||
ree-1.8.7-2011.03
|
|
||||||
|
|
||||||
## <a name="section_4"></a> 4 Development
|
|
||||||
|
|
||||||
The rbenv source code is [hosted on
|
|
||||||
GitHub](https://github.com/sstephenson/rbenv). It's clean, modular,
|
|
||||||
and easy to understand, even if you're not a shell hacker.
|
and easy to understand, even if you're not a shell hacker.
|
||||||
|
|
||||||
|
Tests are executed using [Bats](https://github.com/sstephenson/bats):
|
||||||
|
|
||||||
|
$ bats test
|
||||||
|
$ bats/test/<file>.bats
|
||||||
|
|
||||||
Please feel free to submit pull requests and file bugs on the [issue
|
Please feel free to submit pull requests and file bugs on the [issue
|
||||||
tracker](https://github.com/sstephenson/rbenv/issues).
|
tracker](https://github.com/yyuu/pyenv/issues).
|
||||||
|
|
||||||
### <a name="section_4.1"></a> 4.1 Version History
|
|
||||||
|
|
||||||
**0.2.1** (October 1, 2011)
|
[pyenv-virtualenv]: https://github.com/yyuu/pyenv-virtualenv#readme
|
||||||
|
[hooks]: https://github.com/yyuu/pyenv/wiki/Authoring-plugins#pyenv-hooks
|
||||||
* Changed the `rbenv` command to ensure that `RBENV_DIR` is always an
|
|
||||||
absolute path. This fixes an issue where Ruby scripts using the
|
|
||||||
`ruby-local-exec` wrapper would go into an infinite loop when
|
|
||||||
invoked with a relative path from the command line.
|
|
||||||
|
|
||||||
**0.2.0** (September 28, 2011)
|
|
||||||
|
|
||||||
* Renamed `rbenv set-default` to `rbenv global` and `rbenv set-local`
|
|
||||||
to `rbenv local`. The `set-` commands are deprecated and will be
|
|
||||||
removed in the next major release.
|
|
||||||
* rbenv now uses `greadlink` on Solaris.
|
|
||||||
* Added a `ruby-local-exec` command which can be used in shebangs in
|
|
||||||
place of `#!/usr/bin/env ruby` to properly set the project-specific
|
|
||||||
Ruby version regardless of current working directory.
|
|
||||||
* Fixed an issue with `rbenv rehash` when no binaries are present.
|
|
||||||
* Added support for `rbenv-sh-*` commands, which run inside the
|
|
||||||
current shell instead of in a child process.
|
|
||||||
* Added an `rbenv shell` command for conveniently setting the
|
|
||||||
`$RBENV_VERSION` environment variable.
|
|
||||||
* Added support for storing rbenv versions and shims in directories
|
|
||||||
other than `~/.rbenv` with the `$RBENV_ROOT` environment variable.
|
|
||||||
* Added support for debugging rbenv via `set -x` when the
|
|
||||||
`$RBENV_DEBUG` environment variable is set.
|
|
||||||
* Refactored the autocompletion system so that completions are now
|
|
||||||
built-in to each command and shared between bash and Zsh.
|
|
||||||
* Added support for plugin bundles in `~/.rbenv/plugins` as documented
|
|
||||||
in [issue #102](https://github.com/sstephenson/rbenv/pull/102).
|
|
||||||
* Added `/usr/local/etc/rbenv.d` to the list of directories searched
|
|
||||||
for rbenv hooks.
|
|
||||||
* Added support for an `$RBENV_DIR` environment variable which
|
|
||||||
defaults to the current working directory for specifying where rbenv
|
|
||||||
searches for local version files.
|
|
||||||
|
|
||||||
**0.1.2** (August 16, 2011)
|
|
||||||
|
|
||||||
* Fixed rbenv to be more resilient against nonexistent entries in
|
|
||||||
`$PATH`.
|
|
||||||
* Made the `rbenv rehash` command operate atomically.
|
|
||||||
* Modified the `rbenv init` script to automatically run `rbenv
|
|
||||||
rehash` so that shims are recreated whenever a new shell is opened.
|
|
||||||
* Added initial support for Zsh autocompletion.
|
|
||||||
* Removed the dependency on egrep for reading version files.
|
|
||||||
|
|
||||||
**0.1.1** (August 14, 2011)
|
|
||||||
|
|
||||||
* Fixed a syntax error in the `rbenv help` command.
|
|
||||||
* Removed `-e` from the shebang in favor of `set -e` at the top of
|
|
||||||
each file for compatibility with operating systems that do not
|
|
||||||
support more than one argument in the shebang.
|
|
||||||
|
|
||||||
**0.1.0** (August 11, 2011)
|
|
||||||
|
|
||||||
* Initial public release.
|
|
||||||
|
|
||||||
### <a name="section_4.2"></a> 4.2 License
|
|
||||||
|
|
||||||
(The MIT license)
|
|
||||||
|
|
||||||
Copyright (c) 2011 Sam Stephenson
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|||||||
23
bin/python-local-exec
Executable file
23
bin/python-local-exec
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# `python-local-exec` is a drop-in replacement for the standard Python
|
||||||
|
# shebang line:
|
||||||
|
#
|
||||||
|
# #!/usr/bin/env python-local-exec
|
||||||
|
#
|
||||||
|
# Use it for scripts inside a project with an `.pyenv-version`
|
||||||
|
# file. When you run the scripts, they'll use the project-specified
|
||||||
|
# Python version, regardless of what directory they're run from. Useful
|
||||||
|
# for e.g. running project tasks in cron scripts without needing to
|
||||||
|
# `cd` into the project first.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
export PYENV_DIR="${1%/*}"
|
||||||
|
|
||||||
|
[ -n "$PYENV_SILENCE_WARNINGS" ] || {
|
||||||
|
echo "pyenv: \`python-local-exec' is deprecated and will be removed in the next release."
|
||||||
|
echo " To upgrade: https://github.com/yyuu/pyenv/wiki/python-local-exec"
|
||||||
|
echo
|
||||||
|
} >&2
|
||||||
|
|
||||||
|
exec python "$@"
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
#
|
|
||||||
# `ruby-local-exec` is a drop-in replacement for the standard Ruby
|
|
||||||
# shebang line:
|
|
||||||
#
|
|
||||||
# #!/usr/bin/env ruby-local-exec
|
|
||||||
#
|
|
||||||
# Use it for scripts inside a project with an `.rbenv-version`
|
|
||||||
# file. When you run the scripts, they'll use the project-specified
|
|
||||||
# Ruby version, regardless of what directory they're run from. Useful
|
|
||||||
# for e.g. running project tasks in cron scripts without needing to
|
|
||||||
# `cd` into the project first.
|
|
||||||
|
|
||||||
set -e
|
|
||||||
export RBENV_DIR="${1%/*}"
|
|
||||||
exec ruby "$@"
|
|
||||||
16
completions/pyenv.bash
Normal file
16
completions/pyenv.bash
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
_pyenv() {
|
||||||
|
COMPREPLY=()
|
||||||
|
local word="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
|
||||||
|
if [ "$COMP_CWORD" -eq 1 ]; then
|
||||||
|
COMPREPLY=( $(compgen -W "$(pyenv commands)" -- "$word") )
|
||||||
|
else
|
||||||
|
local words=("${COMP_WORDS[@]}")
|
||||||
|
unset words[0]
|
||||||
|
unset words[$COMP_CWORD]
|
||||||
|
local completions=$(pyenv completions "${words[@]}")
|
||||||
|
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
complete -F _pyenv pyenv
|
||||||
22
completions/pyenv.fish
Normal file
22
completions/pyenv.fish
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
function __fish_pyenv_needs_command
|
||||||
|
set cmd (commandline -opc)
|
||||||
|
if [ (count $cmd) -eq 1 -a $cmd[1] = 'pyenv' ]
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
|
||||||
|
function __fish_pyenv_using_command
|
||||||
|
set cmd (commandline -opc)
|
||||||
|
if [ (count $cmd) -gt 1 ]
|
||||||
|
if [ $argv[1] = $cmd[2] ]
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
|
||||||
|
complete -f -c pyenv -n '__fish_pyenv_needs_command' -a '(pyenv commands)'
|
||||||
|
for cmd in (pyenv commands)
|
||||||
|
complete -f -c pyenv -n "__fish_pyenv_using_command $cmd" -a "(pyenv completions $cmd)"
|
||||||
|
end
|
||||||
18
completions/pyenv.zsh
Normal file
18
completions/pyenv.zsh
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
if [[ ! -o interactive ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
compctl -K _pyenv pyenv
|
||||||
|
|
||||||
|
_pyenv() {
|
||||||
|
local words completions
|
||||||
|
read -cA words
|
||||||
|
|
||||||
|
if [ "${#words}" -eq 2 ]; then
|
||||||
|
completions="$(pyenv commands)"
|
||||||
|
else
|
||||||
|
completions="$(pyenv completions ${words[2,-2]})"
|
||||||
|
fi
|
||||||
|
|
||||||
|
reply=(${(ps:\n:)completions})
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
_rbenv() {
|
|
||||||
COMPREPLY=()
|
|
||||||
local word="${COMP_WORDS[COMP_CWORD]}"
|
|
||||||
|
|
||||||
if [ "$COMP_CWORD" -eq 1 ]; then
|
|
||||||
COMPREPLY=( $(compgen -W "$(rbenv commands)" -- "$word") )
|
|
||||||
else
|
|
||||||
local command="${COMP_WORDS[1]}"
|
|
||||||
local completions="$(rbenv completions "$command")"
|
|
||||||
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
complete -F _rbenv rbenv
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
compctl -K _rbenv rbenv
|
|
||||||
|
|
||||||
_rbenv() {
|
|
||||||
local word words completions
|
|
||||||
read -cA words
|
|
||||||
word="${words[2]}"
|
|
||||||
|
|
||||||
if [ "${#words}" -eq 2 ]; then
|
|
||||||
completions="$(rbenv commands)"
|
|
||||||
else
|
|
||||||
completions="$(rbenv completions "${word}")"
|
|
||||||
fi
|
|
||||||
|
|
||||||
reply=("${(ps:\n:)completions}")
|
|
||||||
}
|
|
||||||
377
doc/README.mdtoc
377
doc/README.mdtoc
@@ -1,377 +0,0 @@
|
|||||||
# Simple Ruby Version Management: rbenv
|
|
||||||
|
|
||||||
rbenv lets you easily switch between multiple versions of Ruby. It's
|
|
||||||
simple, unobtrusive, and follows the UNIX tradition of single-purpose
|
|
||||||
tools that do one thing well.
|
|
||||||
|
|
||||||
<img src="http://i.sstephenson.us/rbenv.png" width="894" height="464">
|
|
||||||
|
|
||||||
### rbenv _does…_
|
|
||||||
|
|
||||||
* Let you **change the global Ruby version** on a per-user basis.
|
|
||||||
* Provide support for **per-project Ruby versions**.
|
|
||||||
* Allow you to **override the Ruby version** with an environment
|
|
||||||
variable.
|
|
||||||
|
|
||||||
### In contrast with rvm, rbenv _does not…_
|
|
||||||
|
|
||||||
* **Need to be loaded into your shell.** Instead, rbenv's shim
|
|
||||||
approach works by adding a directory to your `$PATH`.
|
|
||||||
* **Override shell commands like `cd`.** That's dangerous and
|
|
||||||
error-prone.
|
|
||||||
* **Have a configuration file.** There's nothing to configure except
|
|
||||||
which version of Ruby you want to use.
|
|
||||||
* **Install Ruby.** You can build and install Ruby yourself, or use
|
|
||||||
[ruby-build](https://github.com/sstephenson/ruby-build) to
|
|
||||||
automate the process.
|
|
||||||
* **Manage gemsets.** [Bundler](http://gembundler.com/) is a better
|
|
||||||
way to manage application dependencies. If you have projects that
|
|
||||||
are not yet using Bundler you can install the
|
|
||||||
[rbenv-gemset](https://github.com/jamis/rbenv-gemset) plugin.
|
|
||||||
* **Require changes to Ruby libraries for compatibility.** The
|
|
||||||
simplicity of rbenv means as long as it's in your `$PATH`,
|
|
||||||
[nothing](https://rvm.beginrescueend.com/integration/bundler/)
|
|
||||||
[else](https://rvm.beginrescueend.com/integration/capistrano/)
|
|
||||||
needs to know about it.
|
|
||||||
* **Prompt you with warnings when you switch to a project.** Instead
|
|
||||||
of executing arbitrary code, rbenv reads just the version name
|
|
||||||
from each project. There's nothing to "trust."
|
|
||||||
|
|
||||||
## Table of Contents
|
|
||||||
|
|
||||||
## How It Works ##
|
|
||||||
|
|
||||||
rbenv operates on the per-user directory `~/.rbenv`. Version names in
|
|
||||||
rbenv correspond to subdirectories of `~/.rbenv/versions`. For
|
|
||||||
example, you might have `~/.rbenv/versions/1.8.7-p354` and
|
|
||||||
`~/.rbenv/versions/1.9.3-rc1`.
|
|
||||||
|
|
||||||
Each version is a working tree with its own binaries, like
|
|
||||||
`~/.rbenv/versions/1.8.7-p354/bin/ruby` and
|
|
||||||
`~/.rbenv/versions/1.9.3-rc1/bin/irb`. rbenv makes _shim binaries_
|
|
||||||
for every such binary across all installed versions of Ruby.
|
|
||||||
|
|
||||||
These shims are simple wrapper scripts that live in `~/.rbenv/shims`
|
|
||||||
and detect which Ruby version you want to use. They insert the
|
|
||||||
directory for the selected version at the beginning of your `$PATH`
|
|
||||||
and then execute the corresponding binary.
|
|
||||||
|
|
||||||
Because of the simplicity of the shim approach, all you need to use
|
|
||||||
rbenv is `~/.rbenv/shims` in your `$PATH`.
|
|
||||||
|
|
||||||
## Installation ##
|
|
||||||
|
|
||||||
**Compatibility note**: rbenv is _incompatible_ with rvm. Things will
|
|
||||||
appear to work until you try to install a gem. The problem is that
|
|
||||||
rvm actually overrides the `gem` command with a shell function!
|
|
||||||
Please remove any references to rvm before using rbenv.
|
|
||||||
|
|
||||||
### Basic GitHub Checkout ###
|
|
||||||
|
|
||||||
This will get you going with the latest version of rbenv and make it
|
|
||||||
easy to fork and contribute any changes back upstream.
|
|
||||||
|
|
||||||
1. Check out rbenv into `~/.rbenv`.
|
|
||||||
|
|
||||||
$ cd
|
|
||||||
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
|
|
||||||
|
|
||||||
2. Add `~/.rbenv/bin` to your `$PATH` for access to the `rbenv`
|
|
||||||
command-line utility.
|
|
||||||
|
|
||||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
|
|
||||||
|
|
||||||
**Zsh note**: Modifiy your `~/.zshrc` file instead of `~/.bash_profile`.
|
|
||||||
|
|
||||||
3. Add rbenv init to your shell to enable shims and autocompletion.
|
|
||||||
|
|
||||||
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
|
||||||
|
|
||||||
**Zsh note**: Modifiy your `~/.zshrc` file instead of `~/.bash_profile`.
|
|
||||||
|
|
||||||
4. Restart your shell so the path changes take effect. You can now
|
|
||||||
begin using rbenv.
|
|
||||||
|
|
||||||
$ exec $SHELL
|
|
||||||
|
|
||||||
5. Install Ruby versions into `~/.rbenv/versions`. For example, to
|
|
||||||
install Ruby 1.9.2-p290, download and unpack the source, then run:
|
|
||||||
|
|
||||||
$ ./configure --prefix=$HOME/.rbenv/versions/1.9.2-p290
|
|
||||||
$ make
|
|
||||||
$ make install
|
|
||||||
|
|
||||||
The [ruby-build](https://github.com/sstephenson/ruby-build) project
|
|
||||||
provides an `rbenv install` command that simplifies the process of
|
|
||||||
installing new Ruby versions to:
|
|
||||||
|
|
||||||
$ rbenv install 1.9.2-p290
|
|
||||||
|
|
||||||
6. Rebuild the shim binaries. You should do this any time you install
|
|
||||||
a new Ruby binary (for example, when installing a new Ruby version,
|
|
||||||
or when installing a gem that provides a binary).
|
|
||||||
|
|
||||||
$ rbenv rehash
|
|
||||||
|
|
||||||
#### Upgrading ####
|
|
||||||
|
|
||||||
If you've installed rbenv using the instructions above, you can
|
|
||||||
upgrade your installation at any time using git.
|
|
||||||
|
|
||||||
To upgrade to the latest development version of rbenv, use `git pull`:
|
|
||||||
|
|
||||||
$ cd ~/.rbenv
|
|
||||||
$ git pull
|
|
||||||
|
|
||||||
To upgrade to a specific release of rbenv, check out the corresponding
|
|
||||||
tag:
|
|
||||||
|
|
||||||
$ cd ~/.rbenv
|
|
||||||
$ git fetch
|
|
||||||
$ git tag
|
|
||||||
v0.1.0
|
|
||||||
v0.1.1
|
|
||||||
v0.1.2
|
|
||||||
v0.2.0
|
|
||||||
$ git checkout v0.2.0
|
|
||||||
|
|
||||||
### Homebrew on Mac OS X ###
|
|
||||||
|
|
||||||
You can also install rbenv using the
|
|
||||||
[Homebrew](http://mxcl.github.com/homebrew/) package manager on Mac OS
|
|
||||||
X.
|
|
||||||
|
|
||||||
$ brew update
|
|
||||||
$ brew install rbenv
|
|
||||||
$ brew install ruby-build
|
|
||||||
|
|
||||||
The same commands can be used for upgrading.
|
|
||||||
|
|
||||||
Afterwards you'll still need to add `eval "$(rbenv init -)"` to your
|
|
||||||
profile as stated in the caveats. You'll only ever have to do this
|
|
||||||
once.
|
|
||||||
|
|
||||||
### Neckbeard Configuration ###
|
|
||||||
|
|
||||||
Skip this section unless you must know what every line in your shell
|
|
||||||
profile is doing.
|
|
||||||
|
|
||||||
`rbenv init` is the only command that crosses the line of loading
|
|
||||||
extra commands into your shell. Coming from rvm, some of you might be
|
|
||||||
opposed to this idea. Here's what `rbenv init` actually does:
|
|
||||||
|
|
||||||
1. Sets up your shims path. This is the only requirement for rbenv to
|
|
||||||
function properly. You can do this by hand by prepending
|
|
||||||
`~/.rbenv/shims` to your `$PATH`.
|
|
||||||
|
|
||||||
2. Installs autocompletion. This is entirely optional but pretty
|
|
||||||
useful. Sourcing `~/.rbenv/completions/rbenv.bash` will set that
|
|
||||||
up. There is also a `~/.rbenv/completions/rbenv.zsh` for Zsh
|
|
||||||
users.
|
|
||||||
|
|
||||||
3. Rehashes shims. From time to time you'll need to rebuild your
|
|
||||||
shim files. Doing this on init makes sure everything is up to
|
|
||||||
date. You can always run `rbenv rehash` manually.
|
|
||||||
|
|
||||||
4. Installs the sh dispatcher. This bit is also optional, but allows
|
|
||||||
rbenv and plugins to change variables in your current shell, making
|
|
||||||
commands like `rbenv shell` possible. The sh dispatcher doesn't do
|
|
||||||
anything crazy like override `cd` or hack your shell prompt, but if
|
|
||||||
for some reason you need `rbenv` to be a real script rather than a
|
|
||||||
shell function, you can safely skip it.
|
|
||||||
|
|
||||||
Run `rbenv init -` for yourself to see exactly what happens under the
|
|
||||||
hood.
|
|
||||||
|
|
||||||
## Usage ##
|
|
||||||
|
|
||||||
Like `git`, the `rbenv` command delegates to subcommands based on its
|
|
||||||
first argument. The most common subcommands are:
|
|
||||||
|
|
||||||
### rbenv global ###
|
|
||||||
|
|
||||||
Sets the global version of Ruby to be used in all shells by writing
|
|
||||||
the version name to the `~/.rbenv/version` file. This version can be
|
|
||||||
overridden by a per-project `.rbenv-version` file, or by setting the
|
|
||||||
`RBENV_VERSION` environment variable.
|
|
||||||
|
|
||||||
$ rbenv global 1.9.2-p290
|
|
||||||
|
|
||||||
The special version name `system` tells rbenv to use the system Ruby
|
|
||||||
(detected by searching your `$PATH`).
|
|
||||||
|
|
||||||
When run without a version number, `rbenv global` reports the
|
|
||||||
currently configured global version.
|
|
||||||
|
|
||||||
### rbenv local ###
|
|
||||||
|
|
||||||
Sets a local per-project Ruby version by writing the version name to
|
|
||||||
an `.rbenv-version` file in the current directory. This version
|
|
||||||
overrides the global, and can be overridden itself by setting the
|
|
||||||
`RBENV_VERSION` environment variable or with the `rbenv shell`
|
|
||||||
command.
|
|
||||||
|
|
||||||
$ rbenv local rbx-1.2.4
|
|
||||||
|
|
||||||
When run without a version number, `rbenv local` reports the currently
|
|
||||||
configured local version. You can also unset the local version:
|
|
||||||
|
|
||||||
$ rbenv local --unset
|
|
||||||
|
|
||||||
### rbenv shell ###
|
|
||||||
|
|
||||||
Sets a shell-specific Ruby version by setting the `RBENV_VERSION`
|
|
||||||
environment variable in your shell. This version overrides both
|
|
||||||
project-specific versions and the global version.
|
|
||||||
|
|
||||||
$ rbenv shell jruby-1.6.4
|
|
||||||
|
|
||||||
When run without a version number, `rbenv shell` reports the current
|
|
||||||
value of `RBENV_VERSION`. You can also unset the shell version:
|
|
||||||
|
|
||||||
$ rbenv shell --unset
|
|
||||||
|
|
||||||
Note that you'll need rbenv's shell integration enabled (step 3 of
|
|
||||||
the installation instructions) in order to use this command. If you
|
|
||||||
prefer not to use shell integration, you may simply set the
|
|
||||||
`RBENV_VERSION` variable yourself:
|
|
||||||
|
|
||||||
$ export RBENV_VERSION=jruby-1.6.4
|
|
||||||
|
|
||||||
### rbenv versions ###
|
|
||||||
|
|
||||||
Lists all Ruby versions known to rbenv, and shows an asterisk next to
|
|
||||||
the currently active version.
|
|
||||||
|
|
||||||
$ rbenv versions
|
|
||||||
1.8.7-p352
|
|
||||||
1.9.2-p290
|
|
||||||
* 1.9.3-rc1 (set by /Users/sam/.rbenv/global)
|
|
||||||
jruby-1.6.4
|
|
||||||
rbx-1.2.4
|
|
||||||
ree-1.8.7-2011.03
|
|
||||||
|
|
||||||
### rbenv version ###
|
|
||||||
|
|
||||||
Displays the currently active Ruby version, along with information on
|
|
||||||
how it was set.
|
|
||||||
|
|
||||||
$ rbenv version
|
|
||||||
1.8.7-p352 (set by /Volumes/37signals/basecamp/.rbenv-version)
|
|
||||||
|
|
||||||
### rbenv rehash ###
|
|
||||||
|
|
||||||
Installs shims for all Ruby binaries known to rbenv (i.e.,
|
|
||||||
`~/.rbenv/versions/*/bin/*`). Run this command after you install a new
|
|
||||||
version of Ruby, or install a gem that provides binaries.
|
|
||||||
|
|
||||||
$ rbenv rehash
|
|
||||||
|
|
||||||
### rbenv which ###
|
|
||||||
|
|
||||||
Displays the full path to the binary that rbenv will execute when you
|
|
||||||
run the given command.
|
|
||||||
|
|
||||||
$ rbenv which irb
|
|
||||||
/Users/sam/.rbenv/versions/1.9.2-p290/bin/irb
|
|
||||||
|
|
||||||
### rbenv whence ###
|
|
||||||
|
|
||||||
Lists all Ruby versions with the given command installed.
|
|
||||||
|
|
||||||
$ rbenv whence rackup
|
|
||||||
1.9.3-rc1
|
|
||||||
jruby-1.6.4
|
|
||||||
ree-1.8.7-2011.03
|
|
||||||
|
|
||||||
## Development ##
|
|
||||||
|
|
||||||
The rbenv source code is [hosted on
|
|
||||||
GitHub](https://github.com/sstephenson/rbenv). It's clean, modular,
|
|
||||||
and easy to understand, even if you're not a shell hacker.
|
|
||||||
|
|
||||||
Please feel free to submit pull requests and file bugs on the [issue
|
|
||||||
tracker](https://github.com/sstephenson/rbenv/issues).
|
|
||||||
|
|
||||||
### Version History ###
|
|
||||||
|
|
||||||
**0.2.1** (October 1, 2011)
|
|
||||||
|
|
||||||
* Changed the `rbenv` command to ensure that `RBENV_DIR` is always an
|
|
||||||
absolute path. This fixes an issue where Ruby scripts using the
|
|
||||||
`ruby-local-exec` wrapper would go into an infinite loop when
|
|
||||||
invoked with a relative path from the command line.
|
|
||||||
|
|
||||||
**0.2.0** (September 28, 2011)
|
|
||||||
|
|
||||||
* Renamed `rbenv set-default` to `rbenv global` and `rbenv set-local`
|
|
||||||
to `rbenv local`. The `set-` commands are deprecated and will be
|
|
||||||
removed in the next major release.
|
|
||||||
* rbenv now uses `greadlink` on Solaris.
|
|
||||||
* Added a `ruby-local-exec` command which can be used in shebangs in
|
|
||||||
place of `#!/usr/bin/env ruby` to properly set the project-specific
|
|
||||||
Ruby version regardless of current working directory.
|
|
||||||
* Fixed an issue with `rbenv rehash` when no binaries are present.
|
|
||||||
* Added support for `rbenv-sh-*` commands, which run inside the
|
|
||||||
current shell instead of in a child process.
|
|
||||||
* Added an `rbenv shell` command for conveniently setting the
|
|
||||||
`$RBENV_VERSION` environment variable.
|
|
||||||
* Added support for storing rbenv versions and shims in directories
|
|
||||||
other than `~/.rbenv` with the `$RBENV_ROOT` environment variable.
|
|
||||||
* Added support for debugging rbenv via `set -x` when the
|
|
||||||
`$RBENV_DEBUG` environment variable is set.
|
|
||||||
* Refactored the autocompletion system so that completions are now
|
|
||||||
built-in to each command and shared between bash and Zsh.
|
|
||||||
* Added support for plugin bundles in `~/.rbenv/plugins` as documented
|
|
||||||
in [issue #102](https://github.com/sstephenson/rbenv/pull/102).
|
|
||||||
* Added `/usr/local/etc/rbenv.d` to the list of directories searched
|
|
||||||
for rbenv hooks.
|
|
||||||
* Added support for an `$RBENV_DIR` environment variable which
|
|
||||||
defaults to the current working directory for specifying where rbenv
|
|
||||||
searches for local version files.
|
|
||||||
|
|
||||||
**0.1.2** (August 16, 2011)
|
|
||||||
|
|
||||||
* Fixed rbenv to be more resilient against nonexistent entries in
|
|
||||||
`$PATH`.
|
|
||||||
* Made the `rbenv rehash` command operate atomically.
|
|
||||||
* Modified the `rbenv init` script to automatically run `rbenv
|
|
||||||
rehash` so that shims are recreated whenever a new shell is opened.
|
|
||||||
* Added initial support for Zsh autocompletion.
|
|
||||||
* Removed the dependency on egrep for reading version files.
|
|
||||||
|
|
||||||
**0.1.1** (August 14, 2011)
|
|
||||||
|
|
||||||
* Fixed a syntax error in the `rbenv help` command.
|
|
||||||
* Removed `-e` from the shebang in favor of `set -e` at the top of
|
|
||||||
each file for compatibility with operating systems that do not
|
|
||||||
support more than one argument in the shebang.
|
|
||||||
|
|
||||||
**0.1.0** (August 11, 2011)
|
|
||||||
|
|
||||||
* Initial public release.
|
|
||||||
|
|
||||||
### License ###
|
|
||||||
|
|
||||||
(The MIT license)
|
|
||||||
|
|
||||||
Copyright (c) 2011 Sam Stephenson
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
82
doc/mdtoc.rb
82
doc/mdtoc.rb
@@ -1,82 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
|
|
||||||
# A little Markdown filter that scans your document for headings,
|
|
||||||
# numbers them, adds anchors, and inserts a table of contents.
|
|
||||||
#
|
|
||||||
# To use it, make sure the headings you want numbered and linked are
|
|
||||||
# in this format:
|
|
||||||
#
|
|
||||||
# ### Title ###
|
|
||||||
#
|
|
||||||
# I.e. they must have an equal number of octothorpes around the title
|
|
||||||
# text. (In Markdown, `#` means `h1`, `##` means `h2`, and so on.)
|
|
||||||
# The table of contents will be inserted before the first such
|
|
||||||
# heading.
|
|
||||||
#
|
|
||||||
# Released into the public domain.
|
|
||||||
# Sam Stephenson <sstephenson@gmail.com>
|
|
||||||
# 2011-04-30
|
|
||||||
|
|
||||||
def mdtoc(markdown)
|
|
||||||
titles = []
|
|
||||||
lines = markdown.split($/)
|
|
||||||
start = nil
|
|
||||||
|
|
||||||
# First pass: Scan the Markdown source looking for titles of the
|
|
||||||
# format: `### Title ###`. Record the line number, header level
|
|
||||||
# (number of octothorpes), and text of each matching title.
|
|
||||||
lines.each_with_index do |line, line_no|
|
|
||||||
if line.match(/^(\#{1,6})\s+(.+?)\s+\1$/)
|
|
||||||
titles << [line_no, $1.length, $2]
|
|
||||||
start ||= line_no
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
last_section = nil
|
|
||||||
last_level = nil
|
|
||||||
|
|
||||||
# Second pass: Iterate over all matched titles and compute their
|
|
||||||
# corresponding section numbers. Then replace the titles with
|
|
||||||
# annotated anchors.
|
|
||||||
titles.each do |title_info|
|
|
||||||
line_no, level, text = title_info
|
|
||||||
|
|
||||||
if last_section
|
|
||||||
section = last_section.dup
|
|
||||||
|
|
||||||
if last_level < level
|
|
||||||
section << 1
|
|
||||||
else
|
|
||||||
(last_level - level).times { section.pop }
|
|
||||||
section[-1] += 1
|
|
||||||
end
|
|
||||||
else
|
|
||||||
section = [1]
|
|
||||||
end
|
|
||||||
|
|
||||||
name = section.join(".")
|
|
||||||
lines[line_no] = %(#{"#" * level} <a name="section_#{name}"></a> #{name} #{text})
|
|
||||||
|
|
||||||
title_info << section
|
|
||||||
last_section = section
|
|
||||||
last_level = level
|
|
||||||
end
|
|
||||||
|
|
||||||
# Third pass: Iterate over matched titles once more to produce the
|
|
||||||
# table of contents. Then insert it immediately above the first
|
|
||||||
# matched title.
|
|
||||||
if start
|
|
||||||
toc = titles.map do |(line_no, level, text, section)|
|
|
||||||
name = section.join(".")
|
|
||||||
%(#{" " * (section.length * 3)}* [#{name} #{text}](#section_#{name}))
|
|
||||||
end + [""]
|
|
||||||
|
|
||||||
lines.insert(start, *toc)
|
|
||||||
end
|
|
||||||
|
|
||||||
lines.join("\n")
|
|
||||||
end
|
|
||||||
|
|
||||||
if __FILE__ == $0
|
|
||||||
puts mdtoc($<.read)
|
|
||||||
end
|
|
||||||
129
libexec/pyenv
Executable file
129
libexec/pyenv
Executable file
@@ -0,0 +1,129 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
export -n CDPATH
|
||||||
|
|
||||||
|
if [ "$1" = "--debug" ]; then
|
||||||
|
export PYENV_DEBUG=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$PYENV_DEBUG" ]; then
|
||||||
|
export PS4='+ [${BASH_SOURCE##*/}:${LINENO}] '
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
|
abort() {
|
||||||
|
{ if [ "$#" -eq 0 ]; then cat -
|
||||||
|
else echo "pyenv: $*"
|
||||||
|
fi
|
||||||
|
} >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if enable -f "${BASH_SOURCE%/*}"/../libexec/pyenv-realpath.dylib realpath 2>/dev/null; then
|
||||||
|
abs_dirname() {
|
||||||
|
local path="$(realpath "$1")"
|
||||||
|
echo "${path%/*}"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
[ -z "$PYENV_NATIVE_EXT" ] || abort "failed to load \`realpath' builtin"
|
||||||
|
|
||||||
|
READLINK=$(type -p greadlink readlink | head -1)
|
||||||
|
[ -n "$READLINK" ] || abort "cannot find readlink - are you missing GNU coreutils?"
|
||||||
|
|
||||||
|
resolve_link() {
|
||||||
|
$READLINK "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
abs_dirname() {
|
||||||
|
local cwd="$(pwd)"
|
||||||
|
local path="$1"
|
||||||
|
|
||||||
|
while [ -n "$path" ]; do
|
||||||
|
cd "${path%/*}"
|
||||||
|
local name="${path##*/}"
|
||||||
|
path="$(resolve_link "$name" || true)"
|
||||||
|
done
|
||||||
|
|
||||||
|
pwd
|
||||||
|
cd "$cwd"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PYENV_ROOT}" ]; then
|
||||||
|
PYENV_ROOT="${HOME}/.pyenv"
|
||||||
|
else
|
||||||
|
PYENV_ROOT="${PYENV_ROOT%/}"
|
||||||
|
fi
|
||||||
|
export PYENV_ROOT
|
||||||
|
|
||||||
|
# Transfer PYENV_FILE_ARG (from shims) into PYENV_DIR.
|
||||||
|
if [ -z "${PYENV_DIR}" ]; then
|
||||||
|
if [ -n "${PYENV_FILE_ARG}" ]; then
|
||||||
|
if [ -L "${PYENV_FILE_ARG}" ]; then
|
||||||
|
PYENV_DIR="$(abs_dirname "${PYENV_FILE_ARG}")"
|
||||||
|
else
|
||||||
|
PYENV_DIR="${PYENV_FILE_ARG%/*}"
|
||||||
|
fi
|
||||||
|
export PYENV_DIR
|
||||||
|
unset PYENV_FILE_ARG
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PYENV_DIR}" ]; then
|
||||||
|
PYENV_DIR="$(pwd)"
|
||||||
|
else
|
||||||
|
cd "$PYENV_DIR" 2>/dev/null || abort "cannot change working directory to \`$PYENV_DIR'"
|
||||||
|
PYENV_DIR="$(pwd)"
|
||||||
|
cd "$OLDPWD"
|
||||||
|
fi
|
||||||
|
export PYENV_DIR
|
||||||
|
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
|
||||||
|
bin_path="$(abs_dirname "$0")"
|
||||||
|
for plugin_bin in "${PYENV_ROOT}/plugins/"*/bin; do
|
||||||
|
PATH="${plugin_bin}:${PATH}"
|
||||||
|
done
|
||||||
|
export PATH="${bin_path}:${PATH}"
|
||||||
|
|
||||||
|
PYENV_HOOK_PATH="${PYENV_HOOK_PATH}:${PYENV_ROOT}/pyenv.d"
|
||||||
|
if [ "${bin_path%/*}" != "$PYENV_ROOT" ]; then
|
||||||
|
# Add pyenv's own `pyenv.d` unless pyenv was cloned to PYENV_ROOT
|
||||||
|
PYENV_HOOK_PATH="${PYENV_HOOK_PATH}:${bin_path%/*}/pyenv.d"
|
||||||
|
fi
|
||||||
|
PYENV_HOOK_PATH="${PYENV_HOOK_PATH}:/usr/local/etc/pyenv.d:/etc/pyenv.d:/usr/lib/pyenv/hooks"
|
||||||
|
for plugin_hook in "${PYENV_ROOT}/plugins/"*/etc/pyenv.d; do
|
||||||
|
PYENV_HOOK_PATH="${PYENV_HOOK_PATH}:${plugin_hook}"
|
||||||
|
done
|
||||||
|
export PYENV_HOOK_PATH
|
||||||
|
|
||||||
|
shopt -u nullglob
|
||||||
|
|
||||||
|
|
||||||
|
command="$1"
|
||||||
|
case "$command" in
|
||||||
|
"" )
|
||||||
|
{ pyenv---version
|
||||||
|
pyenv-help
|
||||||
|
} | abort
|
||||||
|
;;
|
||||||
|
-v | --version )
|
||||||
|
exec pyenv---version
|
||||||
|
;;
|
||||||
|
-h | --help )
|
||||||
|
exec pyenv-help
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
command_path="$(command -v "pyenv-$command" || true)"
|
||||||
|
[ -n "$command_path" ] || abort "no such command \`$command'"
|
||||||
|
|
||||||
|
shift 1
|
||||||
|
if [ "$1" = --help ]; then
|
||||||
|
exec pyenv-help "$command"
|
||||||
|
else
|
||||||
|
exec "$command_path" "$@"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
26
libexec/pyenv---version
Executable file
26
libexec/pyenv---version
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Display the version of pyenv
|
||||||
|
#
|
||||||
|
# Displays the version number of this pyenv release, including the
|
||||||
|
# current revision from git, if available.
|
||||||
|
#
|
||||||
|
# The format of the git revision is:
|
||||||
|
# <version>-<num_commits>-<git_sha>
|
||||||
|
# where `num_commits` is the number of commits since `version` was
|
||||||
|
# tagged.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
version="20151210"
|
||||||
|
git_revision=""
|
||||||
|
|
||||||
|
for source_dir in "${BASH_SOURCE%/*}" "$PYENV_ROOT"; do
|
||||||
|
if cd "$source_dir" 2>/dev/null && git remote -v 2>/dev/null | grep -q pyenv; then
|
||||||
|
git_revision="$(git describe --tags HEAD 2>/dev/null || true)"
|
||||||
|
git_revision="${git_revision#v}"
|
||||||
|
[ -z "$git_revision" ] || break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "pyenv ${git_revision:-$version}"
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
# Summary: List all available pyenv commands
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
# Usage: pyenv commands [--sh|--no-sh]
|
||||||
|
|
||||||
# Provide rbenv completions
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
if [ "$1" = "--complete" ]; then
|
if [ "$1" = "--complete" ]; then
|
||||||
echo --sh
|
echo --sh
|
||||||
echo --no-sh
|
echo --no-sh
|
||||||
@@ -17,11 +20,13 @@ elif [ "$1" = "--no-sh" ]; then
|
|||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
IFS=: paths=($PATH)
|
||||||
|
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
{ for path in ${PATH//:/$'\n'}; do
|
{ for path in "${paths[@]}"; do
|
||||||
for command in "${path}/rbenv-"*; do
|
for command in "${path}/pyenv-"*; do
|
||||||
command="${command##*rbenv-}"
|
command="${command##*pyenv-}"
|
||||||
if [ -n "$sh" ]; then
|
if [ -n "$sh" ]; then
|
||||||
if [ ${command:0:3} = "sh-" ]; then
|
if [ ${command:0:3} = "sh-" ]; then
|
||||||
echo ${command##sh-}
|
echo ${command##sh-}
|
||||||
26
libexec/pyenv-completions
Executable file
26
libexec/pyenv-completions
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Usage: pyenv completions <command> [arg1 arg2...]
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
COMMAND="$1"
|
||||||
|
if [ -z "$COMMAND" ]; then
|
||||||
|
pyenv-help --usage completions >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$COMMAND" = "--complete" ]; then
|
||||||
|
exec pyenv-commands
|
||||||
|
fi
|
||||||
|
|
||||||
|
COMMAND_PATH="$(command -v "pyenv-$COMMAND" || command -v "pyenv-sh-$COMMAND")"
|
||||||
|
|
||||||
|
# --help is provided automatically
|
||||||
|
echo --help
|
||||||
|
|
||||||
|
if grep -iE "^([#%]|--|//) provide pyenv completions" "$COMMAND_PATH" >/dev/null; then
|
||||||
|
shift
|
||||||
|
exec "$COMMAND_PATH" --complete "$@"
|
||||||
|
fi
|
||||||
47
libexec/pyenv-exec
Executable file
47
libexec/pyenv-exec
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Run an executable with the selected Python version
|
||||||
|
#
|
||||||
|
# Usage: pyenv exec <command> [arg1 arg2...]
|
||||||
|
#
|
||||||
|
# Runs an executable by first preparing PATH so that the selected Python
|
||||||
|
# version's `bin' directory is at the front.
|
||||||
|
#
|
||||||
|
# For example, if the currently selected Python version is 2.7.6:
|
||||||
|
# pyenv exec pip install -rrequirements.txt
|
||||||
|
#
|
||||||
|
# is equivalent to:
|
||||||
|
# PATH="$PYENV_ROOT/versions/2.7.6/bin:$PATH" pip install -rrequirements.txt
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
exec pyenv-shims --short
|
||||||
|
fi
|
||||||
|
|
||||||
|
PYENV_VERSION="$(pyenv-version-name)"
|
||||||
|
PYENV_COMMAND="$1"
|
||||||
|
|
||||||
|
if [ -z "$PYENV_COMMAND" ]; then
|
||||||
|
pyenv-help --usage exec >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PYENV_VERSION
|
||||||
|
PYENV_COMMAND_PATH="$(pyenv-which "$PYENV_COMMAND")"
|
||||||
|
PYENV_BIN_PATH="${PYENV_COMMAND_PATH%/*}"
|
||||||
|
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=$'\n' scripts=(`pyenv-hooks exec`)
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
for script in "${scripts[@]}"; do
|
||||||
|
source "$script"
|
||||||
|
done
|
||||||
|
|
||||||
|
shift 1
|
||||||
|
# CPython's `sys.executable` requires the `PYENV_BIN_PATH` to be at the top of the `PATH`.
|
||||||
|
# https://github.com/yyuu/pyenv/issues/98
|
||||||
|
export PATH="${PYENV_BIN_PATH}:${PATH}"
|
||||||
|
exec -a "$PYENV_COMMAND" "$PYENV_COMMAND_PATH" "$@"
|
||||||
41
libexec/pyenv-global
Executable file
41
libexec/pyenv-global
Executable file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Set or show the global Python version
|
||||||
|
#
|
||||||
|
# Usage: pyenv global <version>
|
||||||
|
#
|
||||||
|
# Sets the global Python version. You can override the global version at
|
||||||
|
# any time by setting a directory-specific version with `pyenv local'
|
||||||
|
# or by setting the `PYENV_VERSION' environment variable.
|
||||||
|
#
|
||||||
|
# <version> should be a string matching a Python version known to pyenv.
|
||||||
|
# The special version string `system' will use your default system Python.
|
||||||
|
# Run `pyenv versions' for a list of available Python versions.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo system
|
||||||
|
exec pyenv-versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
|
versions=("$@")
|
||||||
|
PYENV_VERSION_FILE="${PYENV_ROOT}/version"
|
||||||
|
|
||||||
|
if [ -n "$versions" ]; then
|
||||||
|
pyenv-version-file-write "$PYENV_VERSION_FILE" "${versions[@]}"
|
||||||
|
else
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=: versions=($(
|
||||||
|
pyenv-version-file-read "$PYENV_VERSION_FILE" ||
|
||||||
|
pyenv-version-file-read "${PYENV_ROOT}/global" ||
|
||||||
|
pyenv-version-file-read "${PYENV_ROOT}/default" ||
|
||||||
|
echo system
|
||||||
|
))
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
for version in "${versions[@]}"; do
|
||||||
|
echo "$version"
|
||||||
|
done
|
||||||
|
fi
|
||||||
168
libexec/pyenv-help
Executable file
168
libexec/pyenv-help
Executable file
@@ -0,0 +1,168 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Display help for a command
|
||||||
|
#
|
||||||
|
# Usage: pyenv help [--usage] COMMAND
|
||||||
|
#
|
||||||
|
# Parses and displays help contents from a command's source file.
|
||||||
|
#
|
||||||
|
# A command is considered documented if it starts with a comment block
|
||||||
|
# that has a `Summary:' or `Usage:' section. Usage instructions can
|
||||||
|
# span multiple lines as long as subsequent lines are indented.
|
||||||
|
# The remainder of the comment block is displayed as extended
|
||||||
|
# documentation.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo --usage
|
||||||
|
exec pyenv-commands
|
||||||
|
fi
|
||||||
|
|
||||||
|
command_path() {
|
||||||
|
local command="$1"
|
||||||
|
command -v pyenv-"$command" || command -v pyenv-sh-"$command" || true
|
||||||
|
}
|
||||||
|
|
||||||
|
extract_initial_comment_block() {
|
||||||
|
sed -ne "
|
||||||
|
/^#/ !{
|
||||||
|
q
|
||||||
|
}
|
||||||
|
|
||||||
|
s/^#$/# /
|
||||||
|
|
||||||
|
/^# / {
|
||||||
|
s/^# //
|
||||||
|
p
|
||||||
|
}
|
||||||
|
"
|
||||||
|
}
|
||||||
|
|
||||||
|
collect_documentation() {
|
||||||
|
$(type -p gawk awk | head -1) '
|
||||||
|
/^Summary:/ {
|
||||||
|
summary = substr($0, 10)
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
/^Usage:/ {
|
||||||
|
reading_usage = 1
|
||||||
|
usage = usage "\n" $0
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
/^( *$| )/ && reading_usage {
|
||||||
|
usage = usage "\n" $0
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
reading_usage = 0
|
||||||
|
help = help "\n" $0
|
||||||
|
}
|
||||||
|
|
||||||
|
function escape(str) {
|
||||||
|
gsub(/[`\\$"]/, "\\\\&", str)
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
|
||||||
|
function trim(str) {
|
||||||
|
sub(/^\n*/, "", str)
|
||||||
|
sub(/\n*$/, "", str)
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
|
||||||
|
END {
|
||||||
|
if (usage || summary) {
|
||||||
|
print "summary=\"" escape(summary) "\""
|
||||||
|
print "usage=\"" escape(trim(usage)) "\""
|
||||||
|
print "help=\"" escape(trim(help)) "\""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'
|
||||||
|
}
|
||||||
|
|
||||||
|
documentation_for() {
|
||||||
|
local filename="$(command_path "$1")"
|
||||||
|
if [ -n "$filename" ]; then
|
||||||
|
extract_initial_comment_block < "$filename" | collect_documentation
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
print_summary() {
|
||||||
|
local command="$1"
|
||||||
|
local summary usage help
|
||||||
|
eval "$(documentation_for "$command")"
|
||||||
|
|
||||||
|
if [ -n "$summary" ]; then
|
||||||
|
printf " %-9s %s\n" "$command" "$summary"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
print_summaries() {
|
||||||
|
for command; do
|
||||||
|
print_summary "$command"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
print_help() {
|
||||||
|
local command="$1"
|
||||||
|
local summary usage help
|
||||||
|
eval "$(documentation_for "$command")"
|
||||||
|
[ -n "$help" ] || help="$summary"
|
||||||
|
|
||||||
|
if [ -n "$usage" -o -n "$summary" ]; then
|
||||||
|
if [ -n "$usage" ]; then
|
||||||
|
echo "$usage"
|
||||||
|
else
|
||||||
|
echo "Usage: pyenv ${command}"
|
||||||
|
fi
|
||||||
|
if [ -n "$help" ]; then
|
||||||
|
echo
|
||||||
|
echo "$help"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Sorry, this command isn't documented yet." >&2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
print_usage() {
|
||||||
|
local command="$1"
|
||||||
|
local summary usage help
|
||||||
|
eval "$(documentation_for "$command")"
|
||||||
|
[ -z "$usage" ] || echo "$usage"
|
||||||
|
}
|
||||||
|
|
||||||
|
unset usage
|
||||||
|
if [ "$1" = "--usage" ]; then
|
||||||
|
usage="1"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$1" ] || [ "$1" == "pyenv" ]; then
|
||||||
|
echo "Usage: pyenv <command> [<args>]"
|
||||||
|
[ -z "$usage" ] || exit
|
||||||
|
echo
|
||||||
|
echo "Some useful pyenv commands are:"
|
||||||
|
print_summaries commands local global shell install uninstall rehash version versions which whence
|
||||||
|
echo
|
||||||
|
echo "See \`pyenv help <command>' for information on a specific command."
|
||||||
|
echo "For full documentation, see: https://github.com/yyuu/pyenv#readme"
|
||||||
|
else
|
||||||
|
command="$1"
|
||||||
|
if [ -n "$(command_path "$command")" ]; then
|
||||||
|
if [ -n "$usage" ]; then
|
||||||
|
print_usage "$command"
|
||||||
|
else
|
||||||
|
print_help "$command"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "pyenv: no such command \`$command'" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
61
libexec/pyenv-hooks
Executable file
61
libexec/pyenv-hooks
Executable file
@@ -0,0 +1,61 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: List hook scripts for a given pyenv command
|
||||||
|
# Usage: pyenv hooks <command>
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo exec
|
||||||
|
echo rehash
|
||||||
|
echo which
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
PYENV_COMMAND="$1"
|
||||||
|
if [ -z "$PYENV_COMMAND" ]; then
|
||||||
|
pyenv-help --usage hooks >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! enable -f "${BASH_SOURCE%/*}"/pyenv-realpath.dylib realpath 2>/dev/null; then
|
||||||
|
if [ -n "$PYENV_NATIVE_EXT" ]; then
|
||||||
|
echo "pyenv: failed to load \`realpath' builtin" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
READLINK=$(type -p greadlink readlink | head -1)
|
||||||
|
if [ -z "$READLINK" ]; then
|
||||||
|
echo "pyenv: cannot find readlink - are you missing GNU coreutils?" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
resolve_link() {
|
||||||
|
$READLINK "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
realpath() {
|
||||||
|
local cwd="$PWD"
|
||||||
|
local path="$1"
|
||||||
|
local name
|
||||||
|
|
||||||
|
while [ -n "$path" ]; do
|
||||||
|
name="${path##*/}"
|
||||||
|
[ "$name" = "$path" ] || cd "${path%/*}"
|
||||||
|
path="$(resolve_link "$name" || true)"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "${PWD}/$name"
|
||||||
|
cd "$cwd"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
IFS=: hook_paths=($PYENV_HOOK_PATH)
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
for path in "${hook_paths[@]}"; do
|
||||||
|
for script in "$path/$PYENV_COMMAND"/*.bash; do
|
||||||
|
realpath "$script"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
shopt -u nullglob
|
||||||
157
libexec/pyenv-init
Executable file
157
libexec/pyenv-init
Executable file
@@ -0,0 +1,157 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Configure the shell environment for pyenv
|
||||||
|
# Usage: eval "$(pyenv init - [--no-rehash] [<shell>])"
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo -
|
||||||
|
echo --no-rehash
|
||||||
|
echo bash
|
||||||
|
echo fish
|
||||||
|
echo ksh
|
||||||
|
echo zsh
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
print=""
|
||||||
|
no_rehash=""
|
||||||
|
for args in "$@"
|
||||||
|
do
|
||||||
|
if [ "$args" = "-" ]; then
|
||||||
|
print=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$args" = "--no-rehash" ]; then
|
||||||
|
no_rehash=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
shell="$1"
|
||||||
|
if [ -z "$shell" ]; then
|
||||||
|
shell="$(ps c -p "$PPID" -o 'ucomm=' 2>/dev/null || true)"
|
||||||
|
shell="${shell##-}"
|
||||||
|
shell="${shell%% *}"
|
||||||
|
shell="${shell:-$SHELL}"
|
||||||
|
shell="${shell##*/}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
root="${0%/*}/.."
|
||||||
|
|
||||||
|
if [ -z "$print" ]; then
|
||||||
|
case "$shell" in
|
||||||
|
bash )
|
||||||
|
if [ -f "${HOME}/.bashrc" ] && [ ! -f "${HOME}/.bash_profile" ]; then
|
||||||
|
profile='~/.bashrc'
|
||||||
|
else
|
||||||
|
profile='~/.bash_profile'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
zsh )
|
||||||
|
profile='~/.zshrc'
|
||||||
|
;;
|
||||||
|
ksh )
|
||||||
|
profile='~/.profile'
|
||||||
|
;;
|
||||||
|
fish )
|
||||||
|
profile='~/.config/fish/config.fish'
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
profile='your profile'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
{ echo "# Load pyenv automatically by appending"
|
||||||
|
echo "# the following to ${profile}:"
|
||||||
|
echo
|
||||||
|
case "$shell" in
|
||||||
|
fish )
|
||||||
|
echo 'status --is-interactive; and . (pyenv init -|psub)'
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo 'eval "$(pyenv init -)"'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo
|
||||||
|
} >&2
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${PYENV_ROOT}/"{shims,versions}
|
||||||
|
|
||||||
|
case "$shell" in
|
||||||
|
fish )
|
||||||
|
echo "setenv PATH '${PYENV_ROOT}/shims' \$PATH"
|
||||||
|
echo "setenv PYENV_SHELL $shell"
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo 'export PATH="'${PYENV_ROOT}'/shims:${PATH}"'
|
||||||
|
echo "export PYENV_SHELL=$shell"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
completion="${root}/completions/pyenv.${shell}"
|
||||||
|
if [ -r "$completion" ]; then
|
||||||
|
case "$shell" in
|
||||||
|
fish ) echo ". '$completion'" ;;
|
||||||
|
* ) echo "source '$completion'" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$no_rehash" ]; then
|
||||||
|
echo 'command pyenv rehash 2>/dev/null'
|
||||||
|
fi
|
||||||
|
|
||||||
|
commands=(`pyenv-commands --sh`)
|
||||||
|
case "$shell" in
|
||||||
|
fish )
|
||||||
|
cat <<EOS
|
||||||
|
function pyenv
|
||||||
|
set command \$argv[1]
|
||||||
|
set -e argv[1]
|
||||||
|
|
||||||
|
switch "\$command"
|
||||||
|
case ${commands[*]}
|
||||||
|
. (pyenv "sh-\$command" \$argv|psub)
|
||||||
|
case '*'
|
||||||
|
command pyenv "\$command" \$argv
|
||||||
|
end
|
||||||
|
end
|
||||||
|
EOS
|
||||||
|
;;
|
||||||
|
ksh )
|
||||||
|
cat <<EOS
|
||||||
|
function pyenv {
|
||||||
|
typeset command
|
||||||
|
EOS
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
cat <<EOS
|
||||||
|
pyenv() {
|
||||||
|
local command
|
||||||
|
EOS
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ "$shell" != "fish" ]; then
|
||||||
|
IFS="|"
|
||||||
|
cat <<EOS
|
||||||
|
command="\$1"
|
||||||
|
if [ "\$#" -gt 0 ]; then
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "\$command" in
|
||||||
|
${commands[*]})
|
||||||
|
eval "\$(pyenv "sh-\$command" "\$@")";;
|
||||||
|
*)
|
||||||
|
command pyenv "\$command" "\$@";;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
EOS
|
||||||
|
fi
|
||||||
62
libexec/pyenv-local
Executable file
62
libexec/pyenv-local
Executable file
@@ -0,0 +1,62 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Set or show the local application-specific Python version
|
||||||
|
#
|
||||||
|
# Usage: pyenv local <version>
|
||||||
|
# pyenv local --unset
|
||||||
|
#
|
||||||
|
# Sets the local application-specific Python version by writing the
|
||||||
|
# version name to a file named `.python-version'.
|
||||||
|
#
|
||||||
|
# When you run a Python command, pyenv will look for a `.python-version'
|
||||||
|
# file in the current directory and each parent directory. If no such
|
||||||
|
# file is found in the tree, pyenv will use the global Python version
|
||||||
|
# specified with `pyenv global'. A version specified with the
|
||||||
|
# `PYENV_VERSION' environment variable takes precedence over local
|
||||||
|
# and global versions.
|
||||||
|
#
|
||||||
|
# For backwards compatibility, pyenv will also read version
|
||||||
|
# specifications from `.pyenv-version' files, but a `.python-version'
|
||||||
|
# file in the same directory takes precedence.
|
||||||
|
#
|
||||||
|
# <version> should be a string matching a Python version known to pyenv.
|
||||||
|
# The special version string `system' will use your default system Python.
|
||||||
|
# Run `pyenv versions' for a list of available Python versions.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo --unset
|
||||||
|
echo system
|
||||||
|
exec pyenv-versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
|
versions=("$@")
|
||||||
|
|
||||||
|
if [ "$versions" = "--unset" ]; then
|
||||||
|
rm -f .python-version .pyenv-version
|
||||||
|
elif [ -n "$versions" ]; then
|
||||||
|
previous_file="$(PYENV_VERSION= pyenv-version-origin || true)"
|
||||||
|
pyenv-version-file-write .python-version "${versions[@]}"
|
||||||
|
if [ "$previous_file" -ef .pyenv-version ]; then
|
||||||
|
rm -f .pyenv-version
|
||||||
|
{ echo "pyenv: removed existing \`.pyenv-version' file and migrated"
|
||||||
|
echo " local version specification to \`.python-version' file"
|
||||||
|
} >&2
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=: versions=($(
|
||||||
|
pyenv-version-file-read .python-version ||
|
||||||
|
pyenv-version-file-read .pyenv-version ||
|
||||||
|
{ echo "pyenv: no local version configured for this directory"
|
||||||
|
exit 1
|
||||||
|
} >&2
|
||||||
|
))
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
for version in "${versions[@]}"; do
|
||||||
|
echo "$version"
|
||||||
|
done
|
||||||
|
fi
|
||||||
56
libexec/pyenv-prefix
Executable file
56
libexec/pyenv-prefix
Executable file
@@ -0,0 +1,56 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Display prefix for a Python version
|
||||||
|
# Usage: pyenv prefix [<version>]
|
||||||
|
#
|
||||||
|
# Displays the directory where a Python version is installed. If no
|
||||||
|
# version is given, `pyenv prefix' displays the location of the
|
||||||
|
# currently selected version.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo system
|
||||||
|
exec pyenv-versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
{ IFS=:
|
||||||
|
export PYENV_VERSION="$*"
|
||||||
|
}
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
elif [ -z "$PYENV_VERSION" ]; then
|
||||||
|
PYENV_VERSION="$(pyenv-version-name)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PYENV_PREFIX_PATHS=()
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
{ IFS=:
|
||||||
|
for version in ${PYENV_VERSION}; do
|
||||||
|
if [ "$version" = "system" ]; then
|
||||||
|
if PYTHON_PATH="$(PYENV_VERSION="${version}" pyenv-which python 2>/dev/null)"; then
|
||||||
|
PYENV_PREFIX_PATH="${PYTHON_PATH%/bin/*}"
|
||||||
|
else
|
||||||
|
echo "pyenv: system version not found in PATH" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
PYENV_PREFIX_PATH="${PYENV_ROOT}/versions/${version}"
|
||||||
|
fi
|
||||||
|
if [ -d "$PYENV_PREFIX_PATH" ]; then
|
||||||
|
PYENV_PREFIX_PATHS=("${PYENV_PREFIX_PATHS[@]}" "$PYENV_PREFIX_PATH")
|
||||||
|
else
|
||||||
|
echo "pyenv: version \`${version}' not installed" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
{ IFS=:
|
||||||
|
echo "${PYENV_PREFIX_PATHS[*]}"
|
||||||
|
}
|
||||||
|
IFS="$OLDIFS"
|
||||||
152
libexec/pyenv-rehash
Executable file
152
libexec/pyenv-rehash
Executable file
@@ -0,0 +1,152 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Rehash pyenv shims (run this after installing executables)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
SHIM_PATH="${PYENV_ROOT}/shims"
|
||||||
|
PROTOTYPE_SHIM_PATH="${SHIM_PATH}/.pyenv-shim"
|
||||||
|
|
||||||
|
# Create the shims directory if it doesn't already exist.
|
||||||
|
mkdir -p "$SHIM_PATH"
|
||||||
|
|
||||||
|
# Ensure only one instance of pyenv-rehash is running at a time by
|
||||||
|
# setting the shell's `noclobber` option and attempting to write to
|
||||||
|
# the prototype shim file. If the file already exists, print a warning
|
||||||
|
# to stderr and exit with a non-zero status.
|
||||||
|
set -o noclobber
|
||||||
|
{ echo > "$PROTOTYPE_SHIM_PATH"
|
||||||
|
} 2>/dev/null ||
|
||||||
|
{ if [ -w "$SHIM_PATH" ]; then
|
||||||
|
echo "pyenv: cannot rehash: $PROTOTYPE_SHIM_PATH exists"
|
||||||
|
else
|
||||||
|
echo "pyenv: cannot rehash: $SHIM_PATH isn't writable"
|
||||||
|
fi
|
||||||
|
exit 1
|
||||||
|
} >&2
|
||||||
|
set +o noclobber
|
||||||
|
|
||||||
|
# If we were able to obtain a lock, register a trap to clean up the
|
||||||
|
# prototype shim when the process exits.
|
||||||
|
trap remove_prototype_shim EXIT
|
||||||
|
|
||||||
|
remove_prototype_shim() {
|
||||||
|
rm -f "$PROTOTYPE_SHIM_PATH"
|
||||||
|
}
|
||||||
|
|
||||||
|
# The prototype shim file is a script that re-execs itself, passing
|
||||||
|
# its filename and any arguments to `pyenv exec`. This file is
|
||||||
|
# hard-linked for every executable and then removed. The linking
|
||||||
|
# technique is fast, uses less disk space than unique files, and also
|
||||||
|
# serves as a locking mechanism.
|
||||||
|
create_prototype_shim() {
|
||||||
|
cat > "$PROTOTYPE_SHIM_PATH" <<SH
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
[ -n "\$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
program="\${0##*/}"
|
||||||
|
if [[ "\$program" = "python"* ]]; then
|
||||||
|
for arg; do
|
||||||
|
case "\$arg" in
|
||||||
|
-c* | -- ) break ;;
|
||||||
|
*/* )
|
||||||
|
if [ -f "\$arg" ]; then
|
||||||
|
export PYENV_FILE_ARG="\$arg"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PYENV_ROOT="$PYENV_ROOT"
|
||||||
|
exec "$(command -v pyenv)" exec "\$program" "\$@"
|
||||||
|
SH
|
||||||
|
chmod +x "$PROTOTYPE_SHIM_PATH"
|
||||||
|
}
|
||||||
|
|
||||||
|
# If the contents of the prototype shim file differ from the contents
|
||||||
|
# of the first shim in the shims directory, assume pyenv has been
|
||||||
|
# upgraded and the existing shims need to be removed.
|
||||||
|
remove_outdated_shims() {
|
||||||
|
local shim
|
||||||
|
for shim in "$SHIM_PATH"/*; do
|
||||||
|
if ! diff "$PROTOTYPE_SHIM_PATH" "$shim" >/dev/null 2>&1; then
|
||||||
|
rm -f "$SHIM_PATH"/*
|
||||||
|
fi
|
||||||
|
break
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# List basenames of executables for every Python version
|
||||||
|
list_executable_names() {
|
||||||
|
local version file
|
||||||
|
pyenv-versions --bare --skip-aliases | \
|
||||||
|
while read version; do
|
||||||
|
for file in "${PYENV_ROOT}/versions/${version}/bin/"*; do
|
||||||
|
echo "${file##*/}"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# The basename of each argument passed to `make_shims` will be
|
||||||
|
# registered for installation as a shim. In this way, plugins may call
|
||||||
|
# `make_shims` with a glob to register many shims at once.
|
||||||
|
make_shims() {
|
||||||
|
local file shim
|
||||||
|
for file; do
|
||||||
|
shim="${file##*/}"
|
||||||
|
register_shim "$shim"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
registered_shims=" "
|
||||||
|
|
||||||
|
# Registers the name of a shim to be generated.
|
||||||
|
register_shim() {
|
||||||
|
registered_shims="${registered_shims}${1} "
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install all the shims registered via `make_shims` or `register_shim` directly.
|
||||||
|
install_registered_shims() {
|
||||||
|
local shim file
|
||||||
|
for shim in $registered_shims; do
|
||||||
|
file="${SHIM_PATH}/${shim}"
|
||||||
|
[ -e "$file" ] || cp "$PROTOTYPE_SHIM_PATH" "$file"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# Once the registered shims have been installed, we make a second pass
|
||||||
|
# over the contents of the shims directory. Any file that is present
|
||||||
|
# in the directory but has not been registered as a shim should be
|
||||||
|
# removed.
|
||||||
|
remove_stale_shims() {
|
||||||
|
local shim
|
||||||
|
for shim in "$SHIM_PATH"/*; do
|
||||||
|
if [[ "$registered_shims" != *" ${shim##*/} "* ]]; then
|
||||||
|
rm -f "$shim"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
|
||||||
|
# Create the prototype shim, then register shims for all known
|
||||||
|
# executables.
|
||||||
|
create_prototype_shim
|
||||||
|
remove_outdated_shims
|
||||||
|
make_shims $(list_executable_names | sort -u)
|
||||||
|
|
||||||
|
|
||||||
|
# Allow plugins to register shims.
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=$'\n' scripts=(`pyenv-hooks rehash`)
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
|
for script in "${scripts[@]}"; do
|
||||||
|
source "$script"
|
||||||
|
done
|
||||||
|
|
||||||
|
install_registered_shims
|
||||||
|
remove_stale_shims
|
||||||
3
libexec/pyenv-root
Executable file
3
libexec/pyenv-root
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Display the root directory where versions and shims are kept
|
||||||
|
echo $PYENV_ROOT
|
||||||
23
libexec/pyenv-sh-rehash
Executable file
23
libexec/pyenv-sh-rehash
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
exec pyenv-rehash --complete
|
||||||
|
fi
|
||||||
|
|
||||||
|
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
|
||||||
|
|
||||||
|
# When pyenv shell integration is enabled, delegate to pyenv-rehash,
|
||||||
|
# then tell the shell to empty its command lookup cache.
|
||||||
|
pyenv-rehash
|
||||||
|
|
||||||
|
case "$shell" in
|
||||||
|
fish )
|
||||||
|
# no rehash support
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "hash -r 2>/dev/null || true"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
67
libexec/pyenv-sh-shell
Executable file
67
libexec/pyenv-sh-shell
Executable file
@@ -0,0 +1,67 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Set or show the shell-specific Python version
|
||||||
|
#
|
||||||
|
# Usage: pyenv shell <version>
|
||||||
|
# pyenv shell --unset
|
||||||
|
#
|
||||||
|
# Sets a shell-specific Python version by setting the `PYENV_VERSION'
|
||||||
|
# environment variable in your shell. This version overrides local
|
||||||
|
# application-specific versions and the global version.
|
||||||
|
#
|
||||||
|
# <version> should be a string matching a Python version known to pyenv.
|
||||||
|
# The special version string `system' will use your default system Python.
|
||||||
|
# Run `pyenv versions' for a list of available Python versions.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo --unset
|
||||||
|
echo system
|
||||||
|
exec pyenv-versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
|
versions=("$@")
|
||||||
|
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
|
||||||
|
|
||||||
|
if [ -z "$versions" ]; then
|
||||||
|
if [ -z "$PYENV_VERSION" ]; then
|
||||||
|
echo "pyenv: no shell-specific version configured" >&2
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "echo \"\$PYENV_VERSION\""
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$versions" = "--unset" ]; then
|
||||||
|
case "$shell" in
|
||||||
|
fish )
|
||||||
|
echo "set -e PYENV_VERSION"
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "unset PYENV_VERSION"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make sure the specified version is installed.
|
||||||
|
if pyenv-prefix "${versions[@]}" >/dev/null; then
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=: version="${versions[*]}"
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
case "$shell" in
|
||||||
|
fish )
|
||||||
|
echo "setenv PYENV_VERSION \"${version}\""
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "export PYENV_VERSION=\"${version}\""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
echo "false"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
22
libexec/pyenv-shims
Executable file
22
libexec/pyenv-shims
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: List existing pyenv shims
|
||||||
|
# Usage: pyenv shims [--short]
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo --short
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
|
||||||
|
for command in "${PYENV_ROOT}/shims/"*; do
|
||||||
|
if [ "$1" = "--short" ]; then
|
||||||
|
echo "${command##*/}"
|
||||||
|
else
|
||||||
|
echo "$command"
|
||||||
|
fi
|
||||||
|
done | sort
|
||||||
20
libexec/pyenv-version
Executable file
20
libexec/pyenv-version
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Show the current Python version and its origin
|
||||||
|
#
|
||||||
|
# Shows the currently selected Python version and how it was
|
||||||
|
# selected. To obtain only the version string, use `pyenv
|
||||||
|
# version-name'.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
exitcode=0
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=: PYENV_VERSION_NAMES=($(pyenv-version-name)) || exitcode=$?
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
|
for PYENV_VERSION_NAME in "${PYENV_VERSION_NAMES[@]}"; do
|
||||||
|
echo "$PYENV_VERSION_NAME (set by $(pyenv-version-origin))"
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $exitcode
|
||||||
35
libexec/pyenv-version-file
Executable file
35
libexec/pyenv-version-file
Executable file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Detect the file that sets the current pyenv version
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
find_local_version_file() {
|
||||||
|
local root="$1"
|
||||||
|
while true; do
|
||||||
|
[[ "$root" =~ ^//[^/]*$ ]] && break
|
||||||
|
if [ -e "${root}/.python-version" ]; then
|
||||||
|
echo "${root}/.python-version"
|
||||||
|
exit
|
||||||
|
elif [ -e "${root}/.pyenv-version" ]; then
|
||||||
|
echo "${root}/.pyenv-version"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
[ -n "$root" ] || break
|
||||||
|
root="${root%/*}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
find_local_version_file "$PYENV_DIR"
|
||||||
|
[ "$PYENV_DIR" = "$PWD" ] || find_local_version_file "$PWD"
|
||||||
|
|
||||||
|
global_version_file="${PYENV_ROOT}/version"
|
||||||
|
|
||||||
|
if [ -e "$global_version_file" ]; then
|
||||||
|
echo "$global_version_file"
|
||||||
|
elif [ -e "${PYENV_ROOT}/global" ]; then
|
||||||
|
echo "${PYENV_ROOT}/global"
|
||||||
|
elif [ -e "${PYENV_ROOT}/default" ]; then
|
||||||
|
echo "${PYENV_ROOT}/default"
|
||||||
|
else
|
||||||
|
echo "$global_version_file"
|
||||||
|
fi
|
||||||
22
libexec/pyenv-version-file-read
Executable file
22
libexec/pyenv-version-file-read
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Usage: pyenv version-file-read <file>
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
VERSION_FILE="$1"
|
||||||
|
|
||||||
|
if [ -e "$VERSION_FILE" ]; then
|
||||||
|
# Read the first non-whitespace word from the specified version file.
|
||||||
|
# Be careful not to load it whole in case there's something crazy in it.
|
||||||
|
IFS="${IFS}"$'\r'
|
||||||
|
words=($(cut -b 1-1024 "$VERSION_FILE" | sed 's/^\s*\(\S\+\).*/\1/'))
|
||||||
|
versions=("${words[@]}")
|
||||||
|
|
||||||
|
if [ -n "$versions" ]; then
|
||||||
|
IFS=":"
|
||||||
|
echo "${versions[*]}"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 1
|
||||||
24
libexec/pyenv-version-file-write
Executable file
24
libexec/pyenv-version-file-write
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Usage: pyenv version-file-write <file> <version>
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
PYENV_VERSION_FILE="$1"
|
||||||
|
shift || true
|
||||||
|
versions=("$@")
|
||||||
|
|
||||||
|
if [ -z "$versions" ] || [ -z "$PYENV_VERSION_FILE" ]; then
|
||||||
|
pyenv-help --usage version-file-write >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make sure the specified version is installed.
|
||||||
|
pyenv-prefix "${versions[@]}" >/dev/null
|
||||||
|
|
||||||
|
# Write the version out to disk.
|
||||||
|
# Create an empty file. Using "rm" might cause a permission error.
|
||||||
|
> "$PYENV_VERSION_FILE"
|
||||||
|
for version in "${versions[@]}"; do
|
||||||
|
echo "$version" >> "$PYENV_VERSION_FILE"
|
||||||
|
done
|
||||||
46
libexec/pyenv-version-name
Executable file
46
libexec/pyenv-version-name
Executable file
@@ -0,0 +1,46 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Show the current Python version
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
if [ -z "$PYENV_VERSION" ]; then
|
||||||
|
PYENV_VERSION_FILE="$(pyenv-version-file)"
|
||||||
|
PYENV_VERSION="$(pyenv-version-file-read "$PYENV_VERSION_FILE" || true)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$PYENV_VERSION" ] || [ "$PYENV_VERSION" = "system" ]; then
|
||||||
|
echo "system"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
version_exists() {
|
||||||
|
local version="$1"
|
||||||
|
[ -d "${PYENV_ROOT}/versions/${version}" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
versions=()
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
{ IFS=:
|
||||||
|
any_not_installed=0
|
||||||
|
for version in ${PYENV_VERSION}; do
|
||||||
|
if version_exists "$version" || [ "$version" = "system" ]; then
|
||||||
|
versions=("${versions[@]}" "${version}")
|
||||||
|
elif version_exists "${version#python-}"; then
|
||||||
|
versions=("${versions[@]}" "${version#python-}")
|
||||||
|
else
|
||||||
|
echo "pyenv: version \`$version' is not installed (set by $(pyenv-version-origin))" >&2
|
||||||
|
any_not_installed=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
{ IFS=:
|
||||||
|
echo "${versions[*]}"
|
||||||
|
}
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
|
if [ "$any_not_installed" = 1 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
10
libexec/pyenv-version-origin
Executable file
10
libexec/pyenv-version-origin
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: Explain how the current Python version is set
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
if [ -n "$PYENV_VERSION" ]; then
|
||||||
|
echo "PYENV_VERSION environment variable"
|
||||||
|
else
|
||||||
|
pyenv-version-file
|
||||||
|
fi
|
||||||
130
libexec/pyenv-versions
Executable file
130
libexec/pyenv-versions
Executable file
@@ -0,0 +1,130 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: List all Python versions available to pyenv
|
||||||
|
# Usage: pyenv versions [--bare] [--skip-aliases]
|
||||||
|
#
|
||||||
|
# Lists all Python versions found in `$PYENV_ROOT/versions/*'.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
unset bare
|
||||||
|
unset skip_aliases
|
||||||
|
# Provide pyenv completions
|
||||||
|
for arg; do
|
||||||
|
case "$arg" in
|
||||||
|
--complete )
|
||||||
|
echo --bare
|
||||||
|
echo --skip-aliases
|
||||||
|
exit ;;
|
||||||
|
--bare ) bare=1 ;;
|
||||||
|
--skip-aliases ) skip_aliases=1 ;;
|
||||||
|
* )
|
||||||
|
pyenv-help --usage versions >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
versions_dir="${PYENV_ROOT}/versions"
|
||||||
|
|
||||||
|
if ! enable -f "${BASH_SOURCE%/*}"/../libexec/pyenv-realpath.dylib realpath 2>/dev/null; then
|
||||||
|
if [ -n "$PYENV_NATIVE_EXT" ]; then
|
||||||
|
echo "pyenv: failed to load \`realpath' builtin" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
READLINK=$(type -p greadlink readlink | head -1)
|
||||||
|
if [ -z "$READLINK" ]; then
|
||||||
|
echo "pyenv: cannot find readlink - are you missing GNU coreutils?" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
resolve_link() {
|
||||||
|
$READLINK "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
realpath() {
|
||||||
|
local cwd="$PWD"
|
||||||
|
local path="$1"
|
||||||
|
local name
|
||||||
|
|
||||||
|
while [ -n "$path" ]; do
|
||||||
|
name="${path##*/}"
|
||||||
|
[ "$name" = "$path" ] || cd "${path%/*}"
|
||||||
|
path="$(resolve_link "$name" || true)"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "${PWD}/$name"
|
||||||
|
cd "$cwd"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "$versions_dir" ]; then
|
||||||
|
versions_dir="$(realpath "$versions_dir")"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$bare" ]; then
|
||||||
|
hit_prefix=""
|
||||||
|
miss_prefix=""
|
||||||
|
current_versions=()
|
||||||
|
include_system=""
|
||||||
|
else
|
||||||
|
hit_prefix="* "
|
||||||
|
miss_prefix=" "
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=: current_versions=($(pyenv-version-name || true))
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
include_system="1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
num_versions=0
|
||||||
|
|
||||||
|
exists() {
|
||||||
|
local car="$1"
|
||||||
|
local cdar
|
||||||
|
shift
|
||||||
|
for cdar in "$@"; do
|
||||||
|
if [ "${car}" == "${cdar}" ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
print_version() {
|
||||||
|
if exists "$1" "${current_versions[@]}"; then
|
||||||
|
echo "${hit_prefix}$1 (set by $(pyenv-version-origin))"
|
||||||
|
else
|
||||||
|
echo "${miss_prefix}$1"
|
||||||
|
fi
|
||||||
|
num_versions=$((num_versions + 1))
|
||||||
|
}
|
||||||
|
|
||||||
|
# Include "system" in the non-bare output, if it exists
|
||||||
|
if [ -n "$include_system" ] && PYENV_VERSION=system pyenv-which python >/dev/null 2>&1; then
|
||||||
|
print_version system
|
||||||
|
fi
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
for path in "$versions_dir"/*; do
|
||||||
|
if [ -d "$path" ]; then
|
||||||
|
if [ -n "$skip_aliases" ] && [ -L "$path" ]; then
|
||||||
|
target="$(realpath "$path")"
|
||||||
|
[ "${target%/*}" != "$versions_dir" ] || continue
|
||||||
|
[ "${target%/*/envs/*}" != "$versions_dir" ] || continue
|
||||||
|
fi
|
||||||
|
print_version "${path##*/}"
|
||||||
|
# virtual environments created by anaconda/miniconda
|
||||||
|
for env_path in "${path}/envs/"*; do
|
||||||
|
if [ -d "${env_path}" ]; then
|
||||||
|
print_version "${env_path#${PYENV_ROOT}/versions/}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
shopt -u nullglob
|
||||||
|
|
||||||
|
if [ "$num_versions" -eq 0 ] && [ -n "$include_system" ]; then
|
||||||
|
echo "Warning: no Python detected on the system" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
38
libexec/pyenv-whence
Executable file
38
libexec/pyenv-whence
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Summary: List all Python versions that contain the given executable
|
||||||
|
# Usage: pyenv whence [--path] <command>
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
echo --path
|
||||||
|
exec pyenv-shims --short
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "--path" ]; then
|
||||||
|
print_paths="1"
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
print_paths=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
whence() {
|
||||||
|
local command="$1"
|
||||||
|
pyenv-versions --bare | while read version; do
|
||||||
|
path="$(pyenv-prefix "$version")/bin/${command}"
|
||||||
|
if [ -x "$path" ]; then
|
||||||
|
[ "$print_paths" ] && echo "$path" || echo "$version"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
PYENV_COMMAND="$1"
|
||||||
|
if [ -z "$PYENV_COMMAND" ]; then
|
||||||
|
pyenv-help --usage whence >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
result="$(whence "$PYENV_COMMAND")"
|
||||||
|
[ -n "$result" ] && echo "$result"
|
||||||
91
libexec/pyenv-which
Executable file
91
libexec/pyenv-which
Executable file
@@ -0,0 +1,91 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Display the full path to an executable
|
||||||
|
#
|
||||||
|
# Usage: pyenv which <command>
|
||||||
|
#
|
||||||
|
# Displays the full path to the executable that pyenv will invoke when
|
||||||
|
# you run the given command.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
exec pyenv-shims --short
|
||||||
|
fi
|
||||||
|
|
||||||
|
remove_from_path() {
|
||||||
|
local path_to_remove="$1"
|
||||||
|
local path_before
|
||||||
|
local result=":$PATH:"
|
||||||
|
while [ "$path_before" != "$result" ]; do
|
||||||
|
path_before="$result"
|
||||||
|
result="${result//:$path_to_remove:/:}"
|
||||||
|
done
|
||||||
|
echo "${result%:}"
|
||||||
|
}
|
||||||
|
|
||||||
|
PYENV_COMMAND="$1"
|
||||||
|
|
||||||
|
if [ -z "$PYENV_COMMAND" ]; then
|
||||||
|
pyenv-help --usage which >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=: versions=(${PYENV_VERSION:-$(pyenv-version-name)})
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
|
for version in "${versions[@]}"; do
|
||||||
|
if [ "$version" = "system" ]; then
|
||||||
|
PATH="$(remove_from_path "${PYENV_ROOT}/shims")"
|
||||||
|
PYENV_COMMAND_PATH="$(command -v "$PYENV_COMMAND" || true)"
|
||||||
|
else
|
||||||
|
PYENV_COMMAND_PATH="${PYENV_ROOT}/versions/${version}/bin/${PYENV_COMMAND}"
|
||||||
|
fi
|
||||||
|
if [ -x "$PYENV_COMMAND_PATH" ]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=$'\n' scripts=(`pyenv-hooks which`)
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
for script in "${scripts[@]}"; do
|
||||||
|
source "$script"
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -x "$PYENV_COMMAND_PATH" ]; then
|
||||||
|
echo "$PYENV_COMMAND_PATH"
|
||||||
|
elif [ "$PYENV_VERSION" != "system" ] && [ ! -d "${PYENV_ROOT}/versions/${PYENV_VERSION}" ]; then
|
||||||
|
echo "pyenv: version \`$PYENV_VERSION' is not installed (set by $(pyenv-version-origin))" >&2
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
any_not_installed=0
|
||||||
|
for version in "${versions[@]}"; do
|
||||||
|
if [ "$version" = "system" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if ! [ -d "${PYENV_ROOT}/versions/${version}" ]; then
|
||||||
|
echo "pyenv: version \`$version' is not installed" >&2
|
||||||
|
any_not_installed=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ "$any_not_installed" = 1 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "pyenv: $PYENV_COMMAND: command not found" >&2
|
||||||
|
|
||||||
|
versions="$(pyenv-whence "$PYENV_COMMAND" || true)"
|
||||||
|
if [ -n "$versions" ]; then
|
||||||
|
{ echo
|
||||||
|
echo "The \`$1' command exists in these Python versions:"
|
||||||
|
echo "$versions" | sed 's/^/ /g'
|
||||||
|
echo
|
||||||
|
} >&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 127
|
||||||
|
fi
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
resolve_link() {
|
|
||||||
$(type -p greadlink readlink | head -1) $1
|
|
||||||
}
|
|
||||||
|
|
||||||
abs_dirname() {
|
|
||||||
local cwd="$(pwd)"
|
|
||||||
local path="$1"
|
|
||||||
|
|
||||||
while [ -n "$path" ]; do
|
|
||||||
cd "${path%/*}"
|
|
||||||
local name="${path##*/}"
|
|
||||||
path="$(resolve_link "$name" || true)"
|
|
||||||
done
|
|
||||||
|
|
||||||
pwd
|
|
||||||
cd "$cwd"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -z "${RBENV_ROOT}" ]; then
|
|
||||||
RBENV_ROOT="${HOME}/.rbenv"
|
|
||||||
else
|
|
||||||
RBENV_ROOT="${RBENV_ROOT%/}"
|
|
||||||
fi
|
|
||||||
export RBENV_ROOT
|
|
||||||
|
|
||||||
if [ -z "${RBENV_DIR}" ]; then
|
|
||||||
RBENV_DIR="$(pwd)"
|
|
||||||
else
|
|
||||||
RBENV_DIR="$(abs_dirname "$RBENV_DIR")"
|
|
||||||
fi
|
|
||||||
export RBENV_DIR
|
|
||||||
|
|
||||||
|
|
||||||
shopt -s nullglob
|
|
||||||
|
|
||||||
bin_path="$(abs_dirname "$0")"
|
|
||||||
for plugin_bin in "${RBENV_ROOT}/plugins/"*/bin; do
|
|
||||||
bin_path="${bin_path}:${plugin_bin}"
|
|
||||||
done
|
|
||||||
export PATH="${bin_path}:${PATH}"
|
|
||||||
|
|
||||||
hook_path="${RBENV_HOOK_PATH}:${RBENV_ROOT}/rbenv.d:/usr/local/etc/rbenv.d:/etc/rbenv.d"
|
|
||||||
for plugin_hook in "${RBENV_ROOT}/plugins/"*/etc/rbenv.d; do
|
|
||||||
hook_path="${hook_path}:${plugin_hook}"
|
|
||||||
done
|
|
||||||
export RBENV_HOOK_PATH="$hook_path"
|
|
||||||
|
|
||||||
shopt -u nullglob
|
|
||||||
|
|
||||||
|
|
||||||
command="$1"
|
|
||||||
case "$command" in
|
|
||||||
"" | "-h" | "--help" )
|
|
||||||
echo -e "rbenv 0.2.1\n$(rbenv-help)" >&2
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
command_path="$(command -v "rbenv-$command" || true)"
|
|
||||||
if [ -z "$command_path" ]; then
|
|
||||||
echo "rbenv: no such command \`$command'" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
shift 1
|
|
||||||
exec "$command_path" "$@"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
COMMAND="$1"
|
|
||||||
if [ -z "$COMMAND" ]; then
|
|
||||||
echo "usage: rbenv completions COMMAND [arg1 arg2...]" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
COMMAND_PATH="$(command -v "rbenv-$COMMAND" || command -v "rbenv-sh-$COMMAND")"
|
|
||||||
if grep -i "^# provide rbenv completions" "$COMMAND_PATH" >/dev/null; then
|
|
||||||
shift
|
|
||||||
exec "$COMMAND_PATH" --complete "$@"
|
|
||||||
fi
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
exec rbenv shims --short
|
|
||||||
fi
|
|
||||||
|
|
||||||
RBENV_COMMAND="$1"
|
|
||||||
if [ -z "$RBENV_COMMAND" ]; then
|
|
||||||
echo "usage: rbenv exec COMMAND [arg1 arg2...]" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
RBENV_COMMAND_PATH="$(rbenv-which "$RBENV_COMMAND")"
|
|
||||||
RBENV_BIN_PATH="${RBENV_COMMAND_PATH%/*}"
|
|
||||||
|
|
||||||
for script in $(rbenv-hooks exec); do
|
|
||||||
source "$script"
|
|
||||||
done
|
|
||||||
|
|
||||||
shift 1
|
|
||||||
export PATH="${RBENV_BIN_PATH}:${PATH}"
|
|
||||||
exec -a "$RBENV_COMMAND" "$RBENV_COMMAND_PATH" "$@"
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
echo system
|
|
||||||
exec rbenv-versions --bare
|
|
||||||
fi
|
|
||||||
|
|
||||||
RBENV_VERSION="$1"
|
|
||||||
RBENV_VERSION_FILE="${RBENV_ROOT}/version"
|
|
||||||
|
|
||||||
if [ -n "$RBENV_VERSION" ]; then
|
|
||||||
rbenv-version-file-write "$RBENV_VERSION_FILE" "$RBENV_VERSION"
|
|
||||||
else
|
|
||||||
rbenv-version-file-read "$RBENV_VERSION_FILE" ||
|
|
||||||
rbenv-version-file-read "${RBENV_ROOT}/global" ||
|
|
||||||
rbenv-version-file-read "${RBENV_ROOT}/default" ||
|
|
||||||
echo system
|
|
||||||
fi
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
print_set_version() {
|
|
||||||
echo "<version> should be a string matching a Ruby version known by rbenv."
|
|
||||||
|
|
||||||
local versions="$(rbenv-versions --bare)"
|
|
||||||
if [ -z "$versions" ]; then
|
|
||||||
echo "There are currently no Ruby versions installed for rbenv."
|
|
||||||
else
|
|
||||||
echo "The currently installed Ruby versions are:"
|
|
||||||
echo "$versions" | sed 's/^/ /'
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "The special version string 'system' will use your default system Ruby."
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
"") echo "usage: rbenv <command> [<args>]
|
|
||||||
|
|
||||||
Some useful rbenv commands are:
|
|
||||||
commands List all rbenv commands
|
|
||||||
rehash Rehash rbenv shims (run this after installing binaries)
|
|
||||||
global Set or show the global Ruby version
|
|
||||||
local Set or show the local directory-specific Ruby version
|
|
||||||
shell Set or show the shell-specific Ruby version
|
|
||||||
version Show the current Ruby version
|
|
||||||
versions List all Ruby versions known by rbenv
|
|
||||||
which Show the full path for the given Ruby command
|
|
||||||
whence List all Ruby versions with the given command
|
|
||||||
|
|
||||||
See 'rbenv help <command>' for information on a specific command.
|
|
||||||
For full documentation, see: https://github.com/sstephenson/rbenv#readme"
|
|
||||||
;;
|
|
||||||
global) echo "usage: rbenv global <version>
|
|
||||||
|
|
||||||
Sets the global Ruby version. You can override the global version at
|
|
||||||
any time by setting a directory-specific version with \`rbenv local'
|
|
||||||
or by setting the RBENV_VERSION environment variable.
|
|
||||||
|
|
||||||
$(print_set_version)"
|
|
||||||
;;
|
|
||||||
local) echo "usage: rbenv local <version>
|
|
||||||
rbenv local --unset
|
|
||||||
|
|
||||||
Sets the local directory-specific Ruby version by writing the version
|
|
||||||
name to a file named '.rbenv-version'.
|
|
||||||
|
|
||||||
When you run a Ruby command, rbenv will look for an '.rbenv-version'
|
|
||||||
file in the current directory and each parent directory. If no such
|
|
||||||
file is found in the tree, rbenv will use the global Ruby version
|
|
||||||
specified with \`rbenv global', or the version specified in the
|
|
||||||
RBENV_VERSION environment variable.
|
|
||||||
|
|
||||||
$(print_set_version)"
|
|
||||||
;;
|
|
||||||
shell) echo "usage: rbenv shell <version>
|
|
||||||
rbenv shell --unset
|
|
||||||
|
|
||||||
Sets a shell-specific Ruby version by setting the 'RBENV_VERSION'
|
|
||||||
environment variable in your shell. This version overrides both
|
|
||||||
project-specific versions and the global version.
|
|
||||||
|
|
||||||
$(print_set_version)"
|
|
||||||
;;
|
|
||||||
which) echo "usage: rbenv which <command>
|
|
||||||
|
|
||||||
Displays the full path to the binary that rbenv will execute when you
|
|
||||||
run the given command."
|
|
||||||
;;
|
|
||||||
whence) echo "usage: rbenv whence <command>
|
|
||||||
|
|
||||||
Lists all Ruby versions with the given command installed."
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
command_path="$(command -v "rbenv-$1" || true)"
|
|
||||||
if [ -n "$command_path" ]; then
|
|
||||||
echo "Sorry, the \`$1' command isn't documented yet."
|
|
||||||
echo
|
|
||||||
echo "You can view the command's source here:"
|
|
||||||
echo "$command_path"
|
|
||||||
echo
|
|
||||||
else
|
|
||||||
echo "rbenv: no such command \`$1'"
|
|
||||||
fi
|
|
||||||
esac
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
echo exec
|
|
||||||
echo rehash
|
|
||||||
echo which
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
RBENV_COMMAND="$1"
|
|
||||||
if [ -z "$RBENV_COMMAND" ]; then
|
|
||||||
echo "usage: rbenv hooks COMMAND" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
resolve_link() {
|
|
||||||
$(type -p greadlink readlink | head -1) $1
|
|
||||||
}
|
|
||||||
|
|
||||||
realpath() {
|
|
||||||
local cwd="$(pwd)"
|
|
||||||
local base="$(basename $1)"
|
|
||||||
local path="$1"
|
|
||||||
|
|
||||||
while [ -n "$path" ]; do
|
|
||||||
cd "${path%/*}"
|
|
||||||
local name="${path##*/}"
|
|
||||||
path="$(resolve_link "$name" || true)"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "$(pwd)/$base"
|
|
||||||
cd "$cwd"
|
|
||||||
}
|
|
||||||
|
|
||||||
shopt -s nullglob
|
|
||||||
for path in ${RBENV_HOOK_PATH//:/$'\n'}; do
|
|
||||||
for script in $path/"$RBENV_COMMAND"/*.bash; do
|
|
||||||
echo $(realpath $script)
|
|
||||||
done
|
|
||||||
done
|
|
||||||
shopt -u nullglob
|
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
print=""
|
|
||||||
if [ "$1" = "-" ]; then
|
|
||||||
print=1
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
|
|
||||||
shell="$1"
|
|
||||||
if [ -z "$shell" ]; then
|
|
||||||
shell="$(basename "$SHELL")"
|
|
||||||
fi
|
|
||||||
|
|
||||||
resolve_link() {
|
|
||||||
$(type -p greadlink readlink | head -1) $1
|
|
||||||
}
|
|
||||||
|
|
||||||
abs_dirname() {
|
|
||||||
local cwd="$(pwd)"
|
|
||||||
local path="$1"
|
|
||||||
|
|
||||||
while [ -n "$path" ]; do
|
|
||||||
cd "${path%/*}"
|
|
||||||
local name="${path##*/}"
|
|
||||||
path="$(resolve_link "$name" || true)"
|
|
||||||
done
|
|
||||||
|
|
||||||
pwd
|
|
||||||
cd "$cwd"
|
|
||||||
}
|
|
||||||
|
|
||||||
root="$(abs_dirname "$0")/.."
|
|
||||||
|
|
||||||
if [ -z "$print" ]; then
|
|
||||||
case "$shell" in
|
|
||||||
bash )
|
|
||||||
profile='~/.bash_profile'
|
|
||||||
;;
|
|
||||||
zsh )
|
|
||||||
profile='~/.zshrc'
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
profile='your profile'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
{ echo "# Load rbenv automatically by adding"
|
|
||||||
echo "# the following to ${profile}:"
|
|
||||||
echo
|
|
||||||
echo 'eval "$(rbenv init -)"'
|
|
||||||
echo
|
|
||||||
} >&2
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${RBENV_ROOT}/"{shims,versions}
|
|
||||||
|
|
||||||
echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
|
|
||||||
|
|
||||||
case "$shell" in
|
|
||||||
bash | zsh )
|
|
||||||
echo "source \"$root/completions/rbenv.${shell}\""
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo 'rbenv rehash 2>/dev/null'
|
|
||||||
|
|
||||||
commands=(`rbenv commands --sh`)
|
|
||||||
IFS="|"
|
|
||||||
cat <<EOS
|
|
||||||
function rbenv() {
|
|
||||||
command="\$1"
|
|
||||||
if [ "\$#" -gt 0 ]; then
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "\$command" in
|
|
||||||
${commands[*]})
|
|
||||||
eval \`rbenv "sh-\$command" "\$@"\`;;
|
|
||||||
*)
|
|
||||||
command rbenv "\$command" "\$@";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
EOS
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
echo --unset
|
|
||||||
echo system
|
|
||||||
exec rbenv-versions --bare
|
|
||||||
fi
|
|
||||||
|
|
||||||
RBENV_VERSION="$1"
|
|
||||||
RBENV_VERSION_FILE=".rbenv-version"
|
|
||||||
|
|
||||||
if [ "$RBENV_VERSION" = "--unset" ]; then
|
|
||||||
rm -f "$RBENV_VERSION_FILE"
|
|
||||||
elif [ -n "$RBENV_VERSION" ]; then
|
|
||||||
rbenv-version-file-write "$RBENV_VERSION_FILE" "$RBENV_VERSION"
|
|
||||||
else
|
|
||||||
rbenv-version-file-read "$RBENV_VERSION_FILE" ||
|
|
||||||
{ echo "rbenv: no local version configured for this directory"
|
|
||||||
exit 1
|
|
||||||
} >&2
|
|
||||||
fi
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
echo system
|
|
||||||
exec rbenv-versions --bare
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
|
||||||
export RBENV_VERSION="$1"
|
|
||||||
elif [ -z "$RBENV_VERSION" ]; then
|
|
||||||
RBENV_VERSION="$(rbenv-version-name)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$RBENV_VERSION" = "system" ]; then
|
|
||||||
RUBY_PATH="$(rbenv-which ruby)"
|
|
||||||
echo "${RUBY_PATH%/*}"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
RBENV_PREFIX_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}"
|
|
||||||
if [ ! -d "$RBENV_PREFIX_PATH" ]; then
|
|
||||||
echo "rbenv: version \`${RBENV_VERSION}' not installed" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "$RBENV_PREFIX_PATH"
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
SHIM_PATH="${RBENV_ROOT}/shims"
|
|
||||||
PROTOTYPE_SHIM_PATH="${SHIM_PATH}/.rbenv-shim"
|
|
||||||
|
|
||||||
# Create the shims directory if it doesn't already exist.
|
|
||||||
mkdir -p "$SHIM_PATH"
|
|
||||||
|
|
||||||
# Ensure only one instance of rbenv-rehash is running at a time by
|
|
||||||
# setting the shell's `noclobber` option and attempting to write to
|
|
||||||
# the prototype shim file. If the file already exists, print a warning
|
|
||||||
# to stderr and exit with a non-zero status.
|
|
||||||
set -o noclobber
|
|
||||||
{ echo > "$PROTOTYPE_SHIM_PATH"
|
|
||||||
} 2>/dev/null ||
|
|
||||||
{ echo "rbenv: cannot rehash: $PROTOTYPE_SHIM_PATH exists"
|
|
||||||
exit 1
|
|
||||||
} >&2
|
|
||||||
set +o noclobber
|
|
||||||
|
|
||||||
# If we were able to obtain a lock, register a trap to clean up the
|
|
||||||
# prototype shim when the process exits.
|
|
||||||
trap remove_prototype_shim SIGINT SIGTERM EXIT
|
|
||||||
|
|
||||||
remove_prototype_shim() {
|
|
||||||
rm -f "$PROTOTYPE_SHIM_PATH"
|
|
||||||
}
|
|
||||||
|
|
||||||
# The prototype shim file is a script that re-execs itself, passing
|
|
||||||
# its filename and any arguments to `rbenv exec`. This file is
|
|
||||||
# hard-linked for every binary and then removed. The linking technique
|
|
||||||
# is fast, uses less disk space than unique files, and also serves as
|
|
||||||
# a locking mechanism.
|
|
||||||
create_prototype_shim() {
|
|
||||||
cat > "$PROTOTYPE_SHIM_PATH" <<SH
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
export RBENV_ROOT="$RBENV_ROOT"
|
|
||||||
exec rbenv exec "\${0##*/}" "\$@"
|
|
||||||
SH
|
|
||||||
chmod +x "$PROTOTYPE_SHIM_PATH"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Make shims by iterating over every filename argument and creating a
|
|
||||||
# hard link from the prototype shim to a file of the same name in the
|
|
||||||
# shims directory, if one does not already exist.
|
|
||||||
make_shims() {
|
|
||||||
local glob="$@"
|
|
||||||
|
|
||||||
for file in $glob; do
|
|
||||||
local shim="${file##*/}"
|
|
||||||
[ -e "$shim" ] || ln -f "$PROTOTYPE_SHIM_PATH" "$shim"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Save the working directory.
|
|
||||||
CUR_PATH=$PWD
|
|
||||||
|
|
||||||
# Empty out the shims directory and make it the working directory.
|
|
||||||
rm -f "$SHIM_PATH"/*
|
|
||||||
cd "$SHIM_PATH"
|
|
||||||
|
|
||||||
# Create the prototype shim, then make shims for all known binaries.
|
|
||||||
create_prototype_shim
|
|
||||||
shopt -s nullglob
|
|
||||||
make_shims ../versions/*/bin/*
|
|
||||||
|
|
||||||
# Restore the previous working directory.
|
|
||||||
cd "$CUR_PATH"
|
|
||||||
|
|
||||||
for script in $(rbenv-hooks rehash); do
|
|
||||||
source "$script"
|
|
||||||
done
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
{ echo "rbenv: warning: \`set-default' has been renamed to \`global'"
|
|
||||||
echo " and will be removed in v0.3.0"
|
|
||||||
echo
|
|
||||||
} >&2
|
|
||||||
|
|
||||||
exec rbenv-global "$@"
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
{ echo "rbenv: warning: \`set-local' has been renamed to \`local'"
|
|
||||||
echo " and will be removed in v0.3.0"
|
|
||||||
echo
|
|
||||||
} >&2
|
|
||||||
|
|
||||||
exec rbenv-local "$@"
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
echo --unset
|
|
||||||
echo system
|
|
||||||
exec rbenv-versions --bare
|
|
||||||
fi
|
|
||||||
|
|
||||||
version="$1"
|
|
||||||
|
|
||||||
if [ -z "$version" ]; then
|
|
||||||
if [ -z "$RBENV_VERSION" ]; then
|
|
||||||
echo "rbenv: no shell-specific version configured" >&2
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "echo \"\$RBENV_VERSION\""
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$version" = "--unset" ]; then
|
|
||||||
echo "unset RBENV_VERSION"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure the specified version is installed.
|
|
||||||
rbenv-prefix "$version" >/dev/null
|
|
||||||
|
|
||||||
echo "export RBENV_VERSION=\"${version}\""
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
echo --short
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
for command in "${RBENV_ROOT}/shims/"*; do
|
|
||||||
if [ "$1" = "--short" ]; then
|
|
||||||
echo "${command##*/}"
|
|
||||||
else
|
|
||||||
echo "$command"
|
|
||||||
fi
|
|
||||||
done | sort
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
echo "$(rbenv-version-name) (set by $(rbenv-version-origin))"
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
root="$RBENV_DIR"
|
|
||||||
while [ -n "$root" ]; do
|
|
||||||
if [ -e "${root}/.rbenv-version" ]; then
|
|
||||||
echo "${root}/.rbenv-version"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
root="${root%/*}"
|
|
||||||
done
|
|
||||||
|
|
||||||
global_version_file="${RBENV_ROOT}/version"
|
|
||||||
|
|
||||||
if [ -e "$global_version_file" ]; then
|
|
||||||
echo "$global_version_file"
|
|
||||||
elif [ -e "${RBENV_ROOT}/global" ]; then
|
|
||||||
echo "${RBENV_ROOT}/global"
|
|
||||||
elif [ -e "${RBENV_ROOT}/default" ]; then
|
|
||||||
echo "${RBENV_ROOT}/default"
|
|
||||||
else
|
|
||||||
echo "$global_version_file"
|
|
||||||
fi
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
VERSION_FILE="$1"
|
|
||||||
|
|
||||||
if [ -e "$VERSION_FILE" ]; then
|
|
||||||
# Read and print the first non-whitespace word from the specified
|
|
||||||
# version file.
|
|
||||||
version=""
|
|
||||||
while read -a words; do
|
|
||||||
word="${words[0]}"
|
|
||||||
if [ -z "$version" ] && [ -n "$word" ]; then
|
|
||||||
version="$word"
|
|
||||||
fi
|
|
||||||
done < <( cat "$VERSION_FILE" && echo )
|
|
||||||
|
|
||||||
if [ -n "$version" ]; then
|
|
||||||
echo "$version"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
RBENV_VERSION_FILE="$1"
|
|
||||||
RBENV_VERSION="$2"
|
|
||||||
|
|
||||||
if [ -z "$RBENV_VERSION" ] || [ -z "$RBENV_VERSION_FILE" ]; then
|
|
||||||
echo "usage: rbenv write-version-file FILENAME VERSION" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure the specified version is installed.
|
|
||||||
rbenv-prefix "$RBENV_VERSION" >/dev/null
|
|
||||||
|
|
||||||
# Write the version out to disk.
|
|
||||||
echo "$RBENV_VERSION" > "$RBENV_VERSION_FILE"
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
if [ -z "$RBENV_VERSION" ]; then
|
|
||||||
RBENV_VERSION_FILE="$(rbenv-version-file)"
|
|
||||||
RBENV_VERSION="$(rbenv-version-file-read "$RBENV_VERSION_FILE" || true)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$RBENV_VERSION" ] || [ "$RBENV_VERSION" = "system" ]; then
|
|
||||||
echo "system"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
RBENV_VERSION_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}"
|
|
||||||
|
|
||||||
if [ -d "$RBENV_VERSION_PATH" ]; then
|
|
||||||
echo "$RBENV_VERSION"
|
|
||||||
else
|
|
||||||
echo "rbenv: version \`$RBENV_VERSION' is not installed" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
if [ -n "$RBENV_VERSION" ]; then
|
|
||||||
echo "RBENV_VERSION environment variable"
|
|
||||||
else
|
|
||||||
rbenv-version-file
|
|
||||||
fi
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
RBENV_VERSION_NAME="$(rbenv-version-name)"
|
|
||||||
|
|
||||||
if [ "$1" = "--bare" ]; then
|
|
||||||
hit_prefix=""
|
|
||||||
miss_prefix=""
|
|
||||||
print_version="$RBENV_VERSION_NAME"
|
|
||||||
else
|
|
||||||
hit_prefix="* "
|
|
||||||
miss_prefix=" "
|
|
||||||
print_version="$(rbenv-version)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for path in "${RBENV_ROOT}/versions/"*; do
|
|
||||||
if [ -d "$path" ]; then
|
|
||||||
version="${path##*/}"
|
|
||||||
|
|
||||||
if [ "$version" == "$RBENV_VERSION_NAME" ]; then
|
|
||||||
echo "${hit_prefix}${print_version}"
|
|
||||||
else
|
|
||||||
echo "${miss_prefix}${version}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
echo --path
|
|
||||||
exec rbenv shims --short
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" = "--path" ]; then
|
|
||||||
print_paths="1"
|
|
||||||
shift
|
|
||||||
else
|
|
||||||
print_paths=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
whence() {
|
|
||||||
local command="$1"
|
|
||||||
rbenv-versions --bare | while read version; do
|
|
||||||
path="$(rbenv-prefix "$version")/bin/${command}"
|
|
||||||
if [ -x "$path" ]; then
|
|
||||||
[ "$print_paths" ] && echo "$path" || echo "$version"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
RBENV_COMMAND="$1"
|
|
||||||
if [ -z "$RBENV_COMMAND" ]; then
|
|
||||||
echo "usage: rbenv whence [--path] COMMAND" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
result="$(whence "$RBENV_COMMAND")"
|
|
||||||
[ -n "$result" ] && echo "$result"
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Provide rbenv completions
|
|
||||||
if [ "$1" = "--complete" ]; then
|
|
||||||
exec rbenv shims --short
|
|
||||||
fi
|
|
||||||
|
|
||||||
expand_path() {
|
|
||||||
if [ ! -d "$1" ]; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
local cwd="$(pwd)"
|
|
||||||
cd "$1"
|
|
||||||
pwd
|
|
||||||
cd "$cwd"
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_from_path() {
|
|
||||||
local path_to_remove="$(expand_path "$1")"
|
|
||||||
local result=""
|
|
||||||
|
|
||||||
if [ -z "$path_to_remove" ]; then
|
|
||||||
echo "${PATH}"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
for path in ${PATH//:/$'\n'}; do
|
|
||||||
path="$(expand_path "$path" || true)"
|
|
||||||
if [ -n "$path" ] && [ "$path" != "$path_to_remove" ]; then
|
|
||||||
result="${result}${path}:"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "${result%:}"
|
|
||||||
}
|
|
||||||
|
|
||||||
RBENV_VERSION="$(rbenv-version-name)"
|
|
||||||
RBENV_COMMAND="$1"
|
|
||||||
|
|
||||||
if [ -z "$RBENV_COMMAND" ]; then
|
|
||||||
echo "usage: rbenv which COMMAND" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$RBENV_VERSION" = "system" ]; then
|
|
||||||
PATH="$(remove_from_path "${RBENV_ROOT}/shims")"
|
|
||||||
RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND")"
|
|
||||||
else
|
|
||||||
RBENV_COMMAND_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}/bin/${RBENV_COMMAND}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for script in $(rbenv-hooks which); do
|
|
||||||
source "$script"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -x "$RBENV_COMMAND_PATH" ]; then
|
|
||||||
echo "$RBENV_COMMAND_PATH"
|
|
||||||
else
|
|
||||||
echo "rbenv: $RBENV_COMMAND: command not found" >&2
|
|
||||||
|
|
||||||
versions="$(rbenv-whence "$RBENV_COMMAND" || true)"
|
|
||||||
if [ -n "$versions" ]; then
|
|
||||||
{ echo
|
|
||||||
echo "The \`$1' command exists in these Ruby versions:"
|
|
||||||
echo "$versions" | sed 's/^/ /g'
|
|
||||||
echo
|
|
||||||
} >&2
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 127
|
|
||||||
fi
|
|
||||||
4
plugins/.gitignore
vendored
Normal file
4
plugins/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
/*
|
||||||
|
!/.gitignore
|
||||||
|
!/version-ext-compat
|
||||||
|
!/python-build
|
||||||
20
plugins/python-build/LICENSE
Normal file
20
plugins/python-build/LICENSE
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
Copyright (c) 2013 Yamashita, Yuu
|
||||||
|
Copyright (c) 2012-2013 Sam Stephenson
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
222
plugins/python-build/README.md
Normal file
222
plugins/python-build/README.md
Normal file
@@ -0,0 +1,222 @@
|
|||||||
|
# python-build
|
||||||
|
|
||||||
|
python-build is a [pyenv](https://github.com/yyuu/pyenv) plugin that
|
||||||
|
provides a `pyenv install` command to compile and install different versions
|
||||||
|
of Python on UNIX-like systems.
|
||||||
|
|
||||||
|
You can also use python-build without pyenv in environments where you need
|
||||||
|
precise control over Python version installation.
|
||||||
|
|
||||||
|
See the [list of releases](https://github.com/yyuu/pyenv/releases)
|
||||||
|
for changes in each version.
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Installing as an pyenv plugin (recommended)
|
||||||
|
|
||||||
|
You need nothing to do since python-build is bundled with pyenv by
|
||||||
|
default.
|
||||||
|
|
||||||
|
### Installing as a standalone program (advanced)
|
||||||
|
|
||||||
|
Installing python-build as a standalone program will give you access to the
|
||||||
|
`python-build` command for precise control over Python version installation. If you
|
||||||
|
have pyenv installed, you will also be able to use the `pyenv install` command.
|
||||||
|
|
||||||
|
git clone git://github.com/yyuu/pyenv.git
|
||||||
|
cd pyenv/plugins/python-build
|
||||||
|
./install.sh
|
||||||
|
|
||||||
|
This will install python-build into `/usr/local`. If you do not have write
|
||||||
|
permission to `/usr/local`, you will need to run `sudo ./install.sh` instead.
|
||||||
|
You can install to a different prefix by setting the `PREFIX` environment
|
||||||
|
variable.
|
||||||
|
|
||||||
|
To update python-build after it has been installed, run `git pull` in your cloned
|
||||||
|
copy of the repository, then re-run the install script.
|
||||||
|
|
||||||
|
### Installing with Homebrew (for OS X users)
|
||||||
|
|
||||||
|
Mac OS X users can install python-build with the [Homebrew](http://brew.sh)
|
||||||
|
package manager. This will give you access to the `python-build` command. If you
|
||||||
|
have pyenv installed, you will also be able to use the `pyenv install` command.
|
||||||
|
|
||||||
|
*This is the recommended method of installation if you installed pyenv with
|
||||||
|
Homebrew.*
|
||||||
|
|
||||||
|
brew install pyenv
|
||||||
|
|
||||||
|
Or, if you would like to install the latest development release:
|
||||||
|
|
||||||
|
brew install --HEAD pyenv
|
||||||
|
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Before you begin, you should ensure that your build environment has the proper
|
||||||
|
system dependencies for compiling the wanted Python Version (see our [recommendations](https://github.com/yyuu/pyenv/wiki#suggested-build-environment)).
|
||||||
|
|
||||||
|
### Using `pyenv install` with pyenv
|
||||||
|
|
||||||
|
To install a Python version for use with pyenv, run `pyenv install` with
|
||||||
|
exact name of the version you want to install. For example,
|
||||||
|
|
||||||
|
pyenv install 2.7.4
|
||||||
|
|
||||||
|
Python versions will be installed into a directory of the same name under
|
||||||
|
`~/.pyenv/versions`.
|
||||||
|
|
||||||
|
To see a list of all available Python versions, run `pyenv install --list`. You
|
||||||
|
may also tab-complete available Python versions if your pyenv installation is
|
||||||
|
properly configured.
|
||||||
|
|
||||||
|
### Using `python-build` standalone
|
||||||
|
|
||||||
|
If you have installed python-build as a standalone program, you can use the
|
||||||
|
`python-build` command to compile and install Python versions into specific
|
||||||
|
locations.
|
||||||
|
|
||||||
|
Run the `python-build` command with the exact name of the version you want to
|
||||||
|
install and the full path where you want to install it. For example,
|
||||||
|
|
||||||
|
python-build 2.7.4 ~/local/python-2.7.4
|
||||||
|
|
||||||
|
To see a list of all available Python versions, run `python-build --definitions`.
|
||||||
|
|
||||||
|
Pass the `-v` or `--verbose` flag to `python-build` as the first argument to see
|
||||||
|
what's happening under the hood.
|
||||||
|
|
||||||
|
### Custom definitions
|
||||||
|
|
||||||
|
Both `pyenv install` and `python-build` accept a path to a custom definition file
|
||||||
|
in place of a version name. Custom definitions let you develop and install
|
||||||
|
versions of Python that are not yet supported by python-build.
|
||||||
|
|
||||||
|
See the [python-build built-in definitions](https://github.com/yyuu/pyenv/tree/master/plugins/python-build/share/python-build) as a starting point for
|
||||||
|
custom definition files.
|
||||||
|
|
||||||
|
[definitions]: https://github.com/yyuu/pyenv/tree/master/plugins/python-build/share/python-build
|
||||||
|
|
||||||
|
### Special environment variables
|
||||||
|
|
||||||
|
You can set certain environment variables to control the build process.
|
||||||
|
|
||||||
|
* `TMPDIR` sets the location where python-build stores temporary files.
|
||||||
|
* `PYTHON_BUILD_BUILD_PATH` sets the location in which sources are downloaded and
|
||||||
|
built. By default, this is a subdirectory of `TMPDIR`.
|
||||||
|
* `PYTHON_BUILD_CACHE_PATH`, if set, specifies a directory to use for caching
|
||||||
|
downloaded package files.
|
||||||
|
* `PYTHON_BUILD_MIRROR_URL` overrides the default mirror URL root to one of your
|
||||||
|
choosing.
|
||||||
|
* `PYTHON_BUILD_SKIP_MIRROR`, if set, forces python-build to download packages from
|
||||||
|
their original source URLs instead of using a mirror.
|
||||||
|
* `PYTHON_BUILD_ROOT` overrides the default location from where build definitions
|
||||||
|
in `share/python-build/` are looked up.
|
||||||
|
* `PYTHON_BUILD_DEFINITIONS` can be a list of colon-separated paths that get
|
||||||
|
additionally searched when looking up build definitions.
|
||||||
|
* `CC` sets the path to the C compiler.
|
||||||
|
* `PYTHON_CFLAGS` lets you pass additional options to the default `CFLAGS`. Use
|
||||||
|
this to override, for instance, the `-O3` option.
|
||||||
|
* `CONFIGURE_OPTS` lets you pass additional options to `./configure`.
|
||||||
|
* `MAKE` lets you override the command to use for `make`. Useful for specifying
|
||||||
|
GNU make (`gmake`) on some systems.
|
||||||
|
* `MAKE_OPTS` (or `MAKEOPTS`) lets you pass additional options to `make`.
|
||||||
|
* `MAKE_INSTALL_OPTS` lets you pass additional options to `make install`.
|
||||||
|
* `PYTHON_CONFIGURE_OPTS` and `PYTHON_MAKE_OPTS` and `PYTHON_MAKE_INSTALL_OPTS` allow
|
||||||
|
you to specify configure and make options for buildling CPython. These variables
|
||||||
|
will be passed to Python only, not any dependent packages (e.g. libyaml).
|
||||||
|
|
||||||
|
### Applying patches to Python before compiling
|
||||||
|
|
||||||
|
Both `pyenv install` and `python-build` support the `--patch` (`-p`) flag that
|
||||||
|
signals that a patch from stdin should be applied to Python, Jython or PyPy
|
||||||
|
source code before the `./configure` and compilation steps.
|
||||||
|
|
||||||
|
Example usage:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# applying a single patch
|
||||||
|
$ pyenv install --patch 2.7.10 < /path/to/python.patch
|
||||||
|
|
||||||
|
# applying a patch from HTTP
|
||||||
|
$ pyenv install --patch 2.7.10 < <(curl -sSL http://git.io/python.patch)
|
||||||
|
|
||||||
|
# applying multiple patches
|
||||||
|
$ cat fix1.patch fix2.patch | pyenv install --patch 2.7.10
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Building with `--enable-shared`
|
||||||
|
|
||||||
|
You can build CPython with `--enable-shared` to install a version with
|
||||||
|
shared object.
|
||||||
|
|
||||||
|
If `--enabled-shared` was found in `PYTHON_CONFIGURE_OPTS` or `CONFIGURE_OPTS`,
|
||||||
|
`python-build` will automatically set `RPATH` to the pyenv's prefix directory.
|
||||||
|
This means you don't have to set `LD_LIBRARY_PATH` or `DYLD_LIBRARY_PATH` for
|
||||||
|
the version(s) installed with `--enable-shared`.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ env PYTHON_CONFIGURE_OPTS="--enable-shared` pyenv install 2.7.9
|
||||||
|
```
|
||||||
|
|
||||||
|
### Checksum verification
|
||||||
|
|
||||||
|
If you have the `shasum`, `openssl`, or `sha256sum` tool installed, python-build will
|
||||||
|
automatically verify the SHA2 checksum of each downloaded package before
|
||||||
|
installing it.
|
||||||
|
|
||||||
|
Checksums are optional and specified as anchors on the package URL in each
|
||||||
|
definition. (All bundled definitions include checksums.)
|
||||||
|
|
||||||
|
### Package download mirrors
|
||||||
|
|
||||||
|
python-build will first attempt to download package files from a mirror hosted on
|
||||||
|
GitHub Pages. If a package is not available on the mirror, if the mirror
|
||||||
|
is down, or if the download is corrupt, python-build will fall back to the
|
||||||
|
official URL specified in the defintion file.
|
||||||
|
|
||||||
|
You can point python-build to another mirror by specifying the
|
||||||
|
`PYTHON_BUILD_MIRROR_URL` environment variable--useful if you'd like to run your
|
||||||
|
own local mirror, for example. Package mirror URLs are constructed by joining
|
||||||
|
this variable with the SHA2 checksum of the package file.
|
||||||
|
|
||||||
|
If you don't have an SHA2 program installed, python-build will skip the download
|
||||||
|
mirror and use official URLs instead. You can force python-build to bypass the
|
||||||
|
mirror by setting the `PYTHON_BUILD_SKIP_MIRROR` environment variable.
|
||||||
|
|
||||||
|
The official python-build download mirror is provided by
|
||||||
|
[GitHub Pages](http://yyuu.github.io/pythons/).
|
||||||
|
|
||||||
|
### Package download caching
|
||||||
|
|
||||||
|
You can instruct python-build to keep a local cache of downloaded package files
|
||||||
|
by setting the `PYTHON_BUILD_CACHE_PATH` environment variable. When set, package
|
||||||
|
files will be kept in this directory after the first successful download and
|
||||||
|
reused by subsequent invocations of `python-build` and `pyenv install`.
|
||||||
|
|
||||||
|
The `pyenv install` command defaults this path to `~/.pyenv/cache`, so in most
|
||||||
|
cases you can enable download caching simply by creating that directory.
|
||||||
|
|
||||||
|
### Keeping the build directory after installation
|
||||||
|
|
||||||
|
Both `python-build` and `pyenv install` accept the `-k` or `--keep` flag, which
|
||||||
|
tells python-build to keep the downloaded source after installation. This can be
|
||||||
|
useful if you need to use `gdb` and `memprof` with Python.
|
||||||
|
|
||||||
|
Source code will be kept in a parallel directory tree `~/.pyenv/sources` when
|
||||||
|
using `--keep` with the `pyenv install` command. You should specify the
|
||||||
|
location of the source code with the `PYTHON_BUILD_BUILD_PATH` environment
|
||||||
|
variable when using `--keep` with `python-build`.
|
||||||
|
|
||||||
|
|
||||||
|
## Getting Help
|
||||||
|
|
||||||
|
Please see the [pyenv wiki](https://github.com/yyuu/pyenv/wiki) for solutions to common problems.
|
||||||
|
|
||||||
|
[wiki]: https://github.com/yyuu/pyenv/wiki
|
||||||
|
|
||||||
|
If you can't find an answer on the wiki, open an issue on the [issue
|
||||||
|
tracker](https://github.com/yyuu/pyenv/issues). Be sure to include
|
||||||
|
the full build log for build failures.
|
||||||
275
plugins/python-build/bin/pyenv-install
Executable file
275
plugins/python-build/bin/pyenv-install
Executable file
@@ -0,0 +1,275 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Install a Python version using python-build
|
||||||
|
#
|
||||||
|
# Usage: pyenv install [-f] [-kvp] <version>
|
||||||
|
# pyenv install [-f] [-kvp] <definition-file>
|
||||||
|
# pyenv install -l|--list
|
||||||
|
#
|
||||||
|
# -l/--list List all available versions
|
||||||
|
# -f/--force Install even if the version appears to be installed already
|
||||||
|
# -s/--skip-existing Skip if the version appears to be installed already
|
||||||
|
#
|
||||||
|
# python-build options:
|
||||||
|
#
|
||||||
|
# -k/--keep Keep source tree in $PYENV_BUILD_ROOT after installation
|
||||||
|
# (defaults to $PYENV_ROOT/sources)
|
||||||
|
# -v/--verbose Verbose mode: print compilation status to stdout
|
||||||
|
# -p/--patch Apply a patch from stdin before building
|
||||||
|
# -g/--debug Build a debug version
|
||||||
|
#
|
||||||
|
# For detailed information on installing Python versions with
|
||||||
|
# python-build, including a list of environment variables for adjusting
|
||||||
|
# compilation, see: https://github.com/yyuu/pyenv#readme
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
|
if [ -z "$PYENV_ROOT" ]; then
|
||||||
|
PYENV_ROOT="${HOME}/.pyenv"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add `share/python-build/` directory from each pyenv plugin to the list of
|
||||||
|
# paths where build definitions are looked up.
|
||||||
|
shopt -s nullglob
|
||||||
|
for plugin_path in "$PYENV_ROOT"/plugins/*/share/python-build; do
|
||||||
|
PYTHON_BUILD_DEFINITIONS="${PYTHON_BUILD_DEFINITIONS}:${plugin_path}"
|
||||||
|
done
|
||||||
|
export PYTHON_BUILD_DEFINITIONS
|
||||||
|
shopt -u nullglob
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
exec python-build --definitions
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Load shared library functions
|
||||||
|
eval "$(python-build --lib)"
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
pyenv-help install 2>/dev/null
|
||||||
|
[ -z "$1" ] || exit "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
definitions() {
|
||||||
|
local query="$1"
|
||||||
|
python-build --definitions | $(type -p ggrep grep | head -1) -F "$query" || true
|
||||||
|
}
|
||||||
|
|
||||||
|
indent() {
|
||||||
|
sed 's/^/ /'
|
||||||
|
}
|
||||||
|
|
||||||
|
unset FORCE
|
||||||
|
unset SKIP_EXISTING
|
||||||
|
unset KEEP
|
||||||
|
unset VERBOSE
|
||||||
|
unset HAS_PATCH
|
||||||
|
unset DEBUG
|
||||||
|
|
||||||
|
parse_options "$@"
|
||||||
|
for option in "${OPTIONS[@]}"; do
|
||||||
|
case "$option" in
|
||||||
|
"h" | "help" )
|
||||||
|
usage 0
|
||||||
|
;;
|
||||||
|
"l" | "list" )
|
||||||
|
echo "Available versions:"
|
||||||
|
definitions | indent
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
"f" | "force" )
|
||||||
|
FORCE=true
|
||||||
|
;;
|
||||||
|
"s" | "skip-existing" )
|
||||||
|
SKIP_EXISTING=true
|
||||||
|
;;
|
||||||
|
"k" | "keep" )
|
||||||
|
[ -n "${PYENV_BUILD_ROOT}" ] || PYENV_BUILD_ROOT="${PYENV_ROOT}/sources"
|
||||||
|
;;
|
||||||
|
"v" | "verbose" )
|
||||||
|
VERBOSE="-v"
|
||||||
|
;;
|
||||||
|
"p" | "patch" )
|
||||||
|
HAS_PATCH="-p"
|
||||||
|
;;
|
||||||
|
"g" | "debug" )
|
||||||
|
DEBUG="-g"
|
||||||
|
;;
|
||||||
|
"version" )
|
||||||
|
exec python-build --version
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
usage 1 >&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
[ "${#ARGUMENTS[@]}" -le 1 ] || usage 1 >&2
|
||||||
|
|
||||||
|
unset VERSION_NAME
|
||||||
|
|
||||||
|
# The first argument contains the definition to install. If the
|
||||||
|
# argument is missing, try to install whatever local app-specific
|
||||||
|
# version is specified by pyenv. Show usage instructions if a local
|
||||||
|
# version is not specified.
|
||||||
|
DEFINITION="${ARGUMENTS[0]}"
|
||||||
|
[ -n "$DEFINITION" ] || DEFINITION="$(pyenv-local 2>/dev/null || true)"
|
||||||
|
[ -n "$DEFINITION" ] || usage 1 >&2
|
||||||
|
|
||||||
|
# Define `before_install` and `after_install` functions that allow
|
||||||
|
# plugin hooks to register a string of code for execution before or
|
||||||
|
# after the installation process.
|
||||||
|
declare -a before_hooks after_hooks
|
||||||
|
|
||||||
|
before_install() {
|
||||||
|
local hook="$1"
|
||||||
|
before_hooks["${#before_hooks[@]}"]="$hook"
|
||||||
|
}
|
||||||
|
|
||||||
|
after_install() {
|
||||||
|
local hook="$1"
|
||||||
|
after_hooks["${#after_hooks[@]}"]="$hook"
|
||||||
|
}
|
||||||
|
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=$'\n' scripts=(`pyenv-hooks install`)
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
for script in "${scripts[@]}"; do source "$script"; done
|
||||||
|
|
||||||
|
|
||||||
|
# Set VERSION_NAME from $DEFINITION, if it is not already set. Then
|
||||||
|
# compute the installation prefix.
|
||||||
|
[ -n "$VERSION_NAME" ] || VERSION_NAME="${DEFINITION##*/}"
|
||||||
|
[ -n "$DEBUG" ] && VERSION_NAME="${VERSION_NAME}-debug"
|
||||||
|
PREFIX="${PYENV_ROOT}/versions/${VERSION_NAME}"
|
||||||
|
|
||||||
|
[ -d "${PREFIX}" ] && PREFIX_EXISTS=1
|
||||||
|
|
||||||
|
# If the installation prefix exists, prompt for confirmation unless
|
||||||
|
# the --force option was specified.
|
||||||
|
if [ -d "${PREFIX}/bin" ]; then
|
||||||
|
if [ -z "$FORCE" ] && [ -z "$SKIP_EXISTING" ]; then
|
||||||
|
echo "pyenv: $PREFIX already exists" >&2
|
||||||
|
read -p "continue with installation? (y/N) "
|
||||||
|
|
||||||
|
case "$REPLY" in
|
||||||
|
y* | Y* ) ;;
|
||||||
|
* ) exit 1 ;;
|
||||||
|
esac
|
||||||
|
elif [ -n "$SKIP_EXISTING" ]; then
|
||||||
|
# Since we know the python version is already installed, and are opting to
|
||||||
|
# not force installation of existing versions, we just `exit 0` here to
|
||||||
|
# leave things happy
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If PYENV_BUILD_ROOT is set, always pass keep options to python-build.
|
||||||
|
if [ -n "${PYENV_BUILD_ROOT}" ]; then
|
||||||
|
export PYTHON_BUILD_BUILD_PATH="${PYENV_BUILD_ROOT}/${VERSION_NAME}"
|
||||||
|
KEEP="-k"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set PYTHON_BUILD_CACHE_PATH to $PYENV_ROOT/cache, if the directory
|
||||||
|
# exists and the variable is not already set.
|
||||||
|
if [ -z "${PYTHON_BUILD_CACHE_PATH}" ] && [ -d "${PYENV_ROOT}/cache" ]; then
|
||||||
|
export PYTHON_BUILD_CACHE_PATH="${PYENV_ROOT}/cache"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PYENV_BOOTSTRAP_VERSION}" ]; then
|
||||||
|
case "${VERSION_NAME}" in
|
||||||
|
[23]"."* )
|
||||||
|
# Default PYENV_VERSION to the friendly Python version. (The
|
||||||
|
# CPython installer requires an existing Python installation to run. An
|
||||||
|
# unsatisfied local .python-version file can cause the installer to
|
||||||
|
# fail.)
|
||||||
|
for version_info in "${VERSION_NAME%-dev}" "${VERSION_NAME%.*}" "${VERSION_NAME%%.*}"; do
|
||||||
|
# Anaconda's `curl` doesn't work on platfrom where `/etc/pki/tls/certs/ca-bundle.crt` isn't available (e.g. Debian)
|
||||||
|
for version in $(pyenv-whence "python${version_info}" 2>/dev/null || true); do
|
||||||
|
if [[ "${version}" != "anaconda"* ]] && [[ "${version}" != "miniconda"* ]]; then
|
||||||
|
PYENV_BOOTSTRAP_VERSION="${version}"
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
"pypy-"*"-src" | "pypy3-"*"-src" )
|
||||||
|
# PyPy/PyPy3 requires existing Python 2.7 to build
|
||||||
|
if [ -n "${PYENV_RPYTHON_VERSION}" ]; then
|
||||||
|
PYENV_BOOTSTRAP_VERSION="${PYENV_RPYTHON_VERSION}"
|
||||||
|
else
|
||||||
|
for version in $(pyenv-versions --bare | sort -r); do
|
||||||
|
if [[ "${version}" == "2.7"* ]]; then
|
||||||
|
PYENV_BOOTSTRAP_VERSION="$version"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if [ -n "$PYENV_BOOTSTRAP_VERSION" ]; then
|
||||||
|
if ! PYENV_VERSION="$PYENV_BOOTSTRAP_VERSION" pyenv-exec python -c 'import curses' 1>/dev/null 2>&1; then
|
||||||
|
echo "pyenv-install: $VERSION_NAME: PyPy requires \`curses' in $PYENV_BOOTSTRAP_VERSION to build from source." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "pyenv-install: $VERSION_NAME: PyPy requires Python 2.7 to build from source." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${PYENV_BOOTSTRAP_VERSION}" ]; then
|
||||||
|
export PYENV_VERSION="${PYENV_BOOTSTRAP_VERSION}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Execute `before_install` hooks.
|
||||||
|
for hook in "${before_hooks[@]}"; do eval "$hook"; done
|
||||||
|
|
||||||
|
# Plan cleanup on unsuccessful installation.
|
||||||
|
cleanup() {
|
||||||
|
[ -z "${PREFIX_EXISTS}" ] && rm -rf "$PREFIX"
|
||||||
|
}
|
||||||
|
|
||||||
|
trap cleanup SIGINT
|
||||||
|
|
||||||
|
# Invoke `python-build` and record the exit status in $STATUS.
|
||||||
|
STATUS=0
|
||||||
|
python-build $KEEP $VERBOSE $HAS_PATCH $DEBUG "$DEFINITION" "$PREFIX" || STATUS="$?"
|
||||||
|
|
||||||
|
# Display a more helpful message if the definition wasn't found.
|
||||||
|
if [ "$STATUS" == "2" ]; then
|
||||||
|
{ candidates="$(definitions "$DEFINITION")"
|
||||||
|
here="$(dirname "${0%/*}")/../.."
|
||||||
|
if [ -n "$candidates" ]; then
|
||||||
|
echo
|
||||||
|
echo "The following versions contain \`$DEFINITION' in the name:"
|
||||||
|
echo "$candidates" | indent
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
echo "See all available versions with \`pyenv install --list'."
|
||||||
|
echo
|
||||||
|
echo -n "If the version you need is missing, try upgrading pyenv"
|
||||||
|
if [ "$here" != "${here#$(brew --prefix 2>/dev/null)}" ]; then
|
||||||
|
printf ":\n\n"
|
||||||
|
echo " brew update && brew upgrade pyenv"
|
||||||
|
elif [ -d "${here}/.git" ]; then
|
||||||
|
printf ":\n\n"
|
||||||
|
echo " cd ${here} && git pull && cd -"
|
||||||
|
else
|
||||||
|
printf ".\n"
|
||||||
|
fi
|
||||||
|
} >&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Execute `after_install` hooks.
|
||||||
|
for hook in "${after_hooks[@]}"; do eval "$hook"; done
|
||||||
|
|
||||||
|
# Run `pyenv-rehash` after a successful installation.
|
||||||
|
if [ "$STATUS" == "0" ]; then
|
||||||
|
pyenv-rehash
|
||||||
|
else
|
||||||
|
cleanup
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit "$STATUS"
|
||||||
89
plugins/python-build/bin/pyenv-uninstall
Executable file
89
plugins/python-build/bin/pyenv-uninstall
Executable file
@@ -0,0 +1,89 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Summary: Uninstall a specific Python version
|
||||||
|
#
|
||||||
|
# Usage: pyenv uninstall [-f|--force] <version>
|
||||||
|
#
|
||||||
|
# -f Attempt to remove the specified version without prompting
|
||||||
|
# for confirmation. If the version does not exist, do not
|
||||||
|
# display an error message.
|
||||||
|
#
|
||||||
|
# See `pyenv versions` for a complete list of installed versions.
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Provide pyenv completions
|
||||||
|
if [ "$1" = "--complete" ]; then
|
||||||
|
exec pyenv versions --bare
|
||||||
|
fi
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
pyenv-help uninstall 2>/dev/null
|
||||||
|
[ -z "$1" ] || exit "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "$PYENV_ROOT" ]; then
|
||||||
|
PYENV_ROOT="${HOME}/.pyenv"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
|
||||||
|
usage 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset FORCE
|
||||||
|
if [ "$1" = "-f" ] || [ "$1" = "--force" ]; then
|
||||||
|
FORCE=true
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ "$#" -eq 1 ] || usage 1 >&2
|
||||||
|
|
||||||
|
DEFINITION="$1"
|
||||||
|
case "$DEFINITION" in
|
||||||
|
"" | -* )
|
||||||
|
usage 1 >&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
declare -a before_hooks after_hooks
|
||||||
|
|
||||||
|
before_uninstall() {
|
||||||
|
local hook="$1"
|
||||||
|
before_hooks["${#before_hooks[@]}"]="$hook"
|
||||||
|
}
|
||||||
|
|
||||||
|
after_uninstall() {
|
||||||
|
local hook="$1"
|
||||||
|
after_hooks["${#after_hooks[@]}"]="$hook"
|
||||||
|
}
|
||||||
|
|
||||||
|
OLDIFS="$IFS"
|
||||||
|
IFS=$'\n' scripts=(`pyenv-hooks uninstall`)
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
for script in "${scripts[@]}"; do source "$script"; done
|
||||||
|
|
||||||
|
|
||||||
|
VERSION_NAME="${DEFINITION##*/}"
|
||||||
|
PREFIX="${PYENV_ROOT}/versions/${VERSION_NAME}"
|
||||||
|
|
||||||
|
if [ -z "$FORCE" ]; then
|
||||||
|
if [ ! -d "$PREFIX" ]; then
|
||||||
|
echo "pyenv: version \`$VERSION_NAME' not installed" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
read -p "pyenv: remove $PREFIX? "
|
||||||
|
case "$REPLY" in
|
||||||
|
y* | Y* ) ;;
|
||||||
|
* ) exit 1 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
for hook in "${before_hooks[@]}"; do eval "$hook"; done
|
||||||
|
|
||||||
|
if [ -d "$PREFIX" ]; then
|
||||||
|
rm -rf "$PREFIX"
|
||||||
|
pyenv-rehash
|
||||||
|
fi
|
||||||
|
|
||||||
|
for hook in "${after_hooks[@]}"; do eval "$hook"; done
|
||||||
1937
plugins/python-build/bin/python-build
Executable file
1937
plugins/python-build/bin/python-build
Executable file
File diff suppressed because it is too large
Load Diff
26
plugins/python-build/install.sh
Executable file
26
plugins/python-build/install.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Usage: PREFIX=/usr/local ./install.sh
|
||||||
|
#
|
||||||
|
# Installs python-build under $PREFIX.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
if [ -z "${PREFIX}" ]; then
|
||||||
|
PREFIX="/usr/local"
|
||||||
|
fi
|
||||||
|
|
||||||
|
BIN_PATH="${PREFIX}/bin"
|
||||||
|
SHARE_PATH="${PREFIX}/share/python-build"
|
||||||
|
|
||||||
|
mkdir -p "$BIN_PATH" "$SHARE_PATH"
|
||||||
|
|
||||||
|
install -p bin/* "$BIN_PATH"
|
||||||
|
for share in share/python-build/*; do
|
||||||
|
if [ -d "$share" ]; then
|
||||||
|
cp -RPp "$share" "$SHARE_PATH"
|
||||||
|
else
|
||||||
|
install -p -m 0644 "$share" "$SHARE_PATH"
|
||||||
|
fi
|
||||||
|
done
|
||||||
5
plugins/python-build/share/python-build/2.1.3
Normal file
5
plugins/python-build/share/python-build/2.1.3
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.2" "http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz#67948acb2ca081f23359d0256e9a271c" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.1.3" "http://www.python.org/ftp/python/2.1.3/Python-2.1.3.tgz#1bcb5bb587948bc38f36db60e15c376009c56c66570e563a08a82bf7f227afb9" ldflags_dirs standard verify_py21
|
||||||
|
#install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#13951be6711438073fbe50843e7f141f" python
|
||||||
|
#install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#62a9f08dd5dc69d76734568a6c040508" python
|
||||||
5
plugins/python-build/share/python-build/2.2.3
Normal file
5
plugins/python-build/share/python-build/2.2.3
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.2" "http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz#67948acb2ca081f23359d0256e9a271c" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.2.3" "http://www.python.org/ftp/python/2.2.3/Python-2.2.3.tgz#a8f92e6b89d47359fff0d1fbfe47f104afc77fd1cd5143e7332758b7bc100188" ldflags_dirs standard verify_py22
|
||||||
|
#install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#13951be6711438073fbe50843e7f141f" python
|
||||||
|
#install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#62a9f08dd5dc69d76734568a6c040508" python
|
||||||
5
plugins/python-build/share/python-build/2.3.7
Normal file
5
plugins/python-build/share/python-build/2.3.7
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.2" "http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz#67948acb2ca081f23359d0256e9a271c" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.3.7" "http://python.org/ftp/python/2.3.7/Python-2.3.7.tgz#969a9891dce9f50b13e54f9890acaf2be66715a5895bf9b11111f320c205b90e" ldflags_dirs standard verify_py23
|
||||||
|
#install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#13951be6711438073fbe50843e7f141f" python
|
||||||
|
#install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#62a9f08dd5dc69d76734568a6c040508" python
|
||||||
5
plugins/python-build/share/python-build/2.4
Normal file
5
plugins/python-build/share/python-build/2.4
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.4" "http://python.org/ftp/python/2.4/Python-2.4.tgz#ff746de0fae8691c082414b42a2bb172da8797e6e8ff66c9a39d2e452f7034e9" ldflags_dirs standard verify_py24
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#993804bb947d18508acee02141281c77d27677f8c14eaa64d6287a1c53ef01c8" python
|
||||||
5
plugins/python-build/share/python-build/2.4.1
Normal file
5
plugins/python-build/share/python-build/2.4.1
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.4.1" "http://python.org/ftp/python/2.4.1/Python-2.4.1.tgz#f449c3b167389324c525ad99d02376c518ac11e163dbbbc13bc88a5c7101fd00" ldflags_dirs standard verify_py24
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#993804bb947d18508acee02141281c77d27677f8c14eaa64d6287a1c53ef01c8" python
|
||||||
5
plugins/python-build/share/python-build/2.4.2
Normal file
5
plugins/python-build/share/python-build/2.4.2
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.4.2" "http://python.org/ftp/python/2.4.2/Python-2.4.2.tgz#2653e1846e87fd9b3ee287fefc965c80c54646548b4913a22265b0dd54493adf" ldflags_dirs standard verify_py24
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#993804bb947d18508acee02141281c77d27677f8c14eaa64d6287a1c53ef01c8" python
|
||||||
5
plugins/python-build/share/python-build/2.4.3
Normal file
5
plugins/python-build/share/python-build/2.4.3
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.4.3" "http://python.org/ftp/python/2.4.3/Python-2.4.3.tgz#985a413932f5e31e6280b37da6b285a3a0b2748c6786643989ed9b23de97e2d5" ldflags_dirs standard verify_py24
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#993804bb947d18508acee02141281c77d27677f8c14eaa64d6287a1c53ef01c8" python
|
||||||
5
plugins/python-build/share/python-build/2.4.4
Normal file
5
plugins/python-build/share/python-build/2.4.4
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.4.4" "http://python.org/ftp/python/2.4.4/Python-2.4.4.tgz#92be6e20cbc3111d9dd0c016d72ef7914c23b879dc52df7ba28df97afbf12e2e" ldflags_dirs standard verify_py24
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#993804bb947d18508acee02141281c77d27677f8c14eaa64d6287a1c53ef01c8" python
|
||||||
5
plugins/python-build/share/python-build/2.4.5
Normal file
5
plugins/python-build/share/python-build/2.4.5
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.4.5" "http://python.org/ftp/python/2.4.5/Python-2.4.5.tgz#6ae6f67a388a7f70ed3a20eebab5aae995ee433089d1f1724095c62f4b7389a1" ldflags_dirs standard verify_py24
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#993804bb947d18508acee02141281c77d27677f8c14eaa64d6287a1c53ef01c8" python
|
||||||
5
plugins/python-build/share/python-build/2.4.6
Normal file
5
plugins/python-build/share/python-build/2.4.6
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.4.6" "http://python.org/ftp/python/2.4.6/Python-2.4.6.tgz#b03f269e826927f05c966cf4f4414f3c93ee2314960859e7f8375e24e82f8b02" ldflags_dirs standard verify_py24
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#993804bb947d18508acee02141281c77d27677f8c14eaa64d6287a1c53ef01c8" python
|
||||||
5
plugins/python-build/share/python-build/2.5
Normal file
5
plugins/python-build/share/python-build/2.5
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.5" "http://python.org/ftp/python/2.5/Python-2.5.tgz#d7bbf42e36003c6065cd19f3e67d283521858515ee923220f654131cebe1d8f2" ldflags_dirs standard verify_py25
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.3.1" "https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957" python
|
||||||
5
plugins/python-build/share/python-build/2.5.1
Normal file
5
plugins/python-build/share/python-build/2.5.1
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.5.1" "http://python.org/ftp/python/2.5.1/Python-2.5.1.tgz#1f5caee846049ca30d996f9403eefdb996295c4af664867e35dcc5eb36e4e7e8" ldflags_dirs standard verify_py25
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.3.1" "https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957" python
|
||||||
5
plugins/python-build/share/python-build/2.5.2
Normal file
5
plugins/python-build/share/python-build/2.5.2
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.5.2" "http://python.org/ftp/python/2.5.2/Python-2.5.2.tgz#834afe8a88adaf623b05ac5dd6700dd5bb5d0d5553fc74ad529359a3496e4ae3" ldflags_dirs standard verify_py25
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.3.1" "https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957" python
|
||||||
5
plugins/python-build/share/python-build/2.5.3
Normal file
5
plugins/python-build/share/python-build/2.5.3
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.5.3" "http://python.org/ftp/python/2.5.3/Python-2.5.3.tgz#c3fee607d20a77dfb72ea2e627eb4d95d25c735603435abde62c57015a0445bd" ldflags_dirs standard verify_py25
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.3.1" "https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957" python
|
||||||
5
plugins/python-build/share/python-build/2.5.4
Normal file
5
plugins/python-build/share/python-build/2.5.4
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.5.4" "http://python.org/ftp/python/2.5.4/Python-2.5.4.tgz#3d3b205611ee503a38a9433d5645a571668420bb219242c7f51af85f05664da6" ldflags_dirs standard verify_py25
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.3.1" "https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957" python
|
||||||
5
plugins/python-build/share/python-build/2.5.5
Normal file
5
plugins/python-build/share/python-build/2.5.5
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.5.5" "http://python.org/ftp/python/2.5.5/Python-2.5.5.tgz#03be1019c4fe93daeb53ba9e4294bf22a8ed4cb854cbd57e24e16f6bf63e2392" ldflags_dirs standard verify_py25
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.3.1" "https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957" python
|
||||||
5
plugins/python-build/share/python-build/2.5.6
Normal file
5
plugins/python-build/share/python-build/2.5.6
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.5.6" "http://python.org/ftp/python/2.5.6/Python-2.5.6.tgz#c2e4377597241b1065677d23327c04d0f41945d370c61a491cc88be367234c5d" ldflags_dirs standard verify_py25
|
||||||
|
install_package "setuptools-1.4.2" "https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz#263986a60a83aba790a5bffc7d009ac88114ba4e908e5c90e453b3bf2155dbbd" python
|
||||||
|
install_package "pip-1.3.1" "https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957" python
|
||||||
4
plugins/python-build/share/python-build/2.6.6
Normal file
4
plugins/python-build/share/python-build/2.6.6
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.6.6" "http://python.org/ftp/python/2.6.6/Python-2.6.6.tgz#372f66db46d773214e4619df1794a26449158f626138d4d2141a64c2f017fae1" ldflags_dirs standard verify_py26 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.6.7
Normal file
4
plugins/python-build/share/python-build/2.6.7
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.6.7" "http://python.org/ftp/python/2.6.7/Python-2.6.7.tgz#a8093eace4cfd3e06b05f0deb5d765e3c6cec65908048640a8cadd7a948b3826" ldflags_dirs standard verify_py26 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.6.8
Normal file
4
plugins/python-build/share/python-build/2.6.8
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.6.8" "http://python.org/ftp/python/2.6.8/Python-2.6.8.tgz#5bf02a75ffa2fcaa5a3cabb8201998519b045541975622316888ea468d9512f7" ldflags_dirs standard verify_py26 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.6.9
Normal file
4
plugins/python-build/share/python-build/2.6.9
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.6.9" "http://python.org/ftp/python/2.6.9/Python-2.6.9.tgz#7277b1285d8a82f374ef6ebaac85b003266f7939b3f2a24a3af52f9523ac94db" ldflags_dirs standard verify_py26 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.7
Normal file
4
plugins/python-build/share/python-build/2.7
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.7" "http://python.org/ftp/python/2.7/Python-2.7.tgz#5670dd6c0c93b0b529781d070852f7b51ce6855615b16afcd318341af2910fb5" ldflags_dirs standard verify_py27 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.7-dev
Normal file
4
plugins/python-build/share/python-build/2.7-dev
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_hg "Python-2.7-dev" "https://hg.python.org/cpython" "2.7" standard verify_py27 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.7.1
Normal file
4
plugins/python-build/share/python-build/2.7.1
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.7.1" "http://python.org/ftp/python/2.7.1/Python-2.7.1.tgz#ca13e7b1860821494f70de017202283ad73b1fb7bd88586401c54ef958226ec8" ldflags_dirs standard verify_py27 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.7.10
Normal file
4
plugins/python-build/share/python-build/2.7.10
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.7.10" "https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz#eda8ce6eec03e74991abb5384170e7c65fcd7522e409b8e83d7e6372add0f12a" ldflags_dirs standard verify_py27 ensurepip
|
||||||
4
plugins/python-build/share/python-build/2.7.11
Normal file
4
plugins/python-build/share/python-build/2.7.11
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#require_gcc
|
||||||
|
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
|
||||||
|
install_package "readline-6.3" "http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readline
|
||||||
|
install_package "Python-2.7.11" "https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz#82929b96fd6afc8da838b149107078c02fa1744b7e60999a8babbc0d3fa86fc6" ldflags_dirs standard verify_py27 ensurepip
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user