├── .gitignore ├── LICENSE ├── README.md ├── README_CN.md ├── executable ├── dist │ └── main │ │ ├── _bisect.so │ │ ├── _cffi_backend.so │ │ ├── _codecs_cn.so │ │ ├── _codecs_hk.so │ │ ├── _codecs_iso2022.so │ │ ├── _codecs_jp.so │ │ ├── _codecs_kr.so │ │ ├── _codecs_tw.so │ │ ├── _collections.so │ │ ├── _ctypes.so │ │ ├── _functools.so │ │ ├── _hashlib.so │ │ ├── _heapq.so │ │ ├── _io.so │ │ ├── _json.so │ │ ├── _locale.so │ │ ├── _multibytecodec.so │ │ ├── _random.so │ │ ├── _socket.so │ │ ├── _ssl.so │ │ ├── _struct.so │ │ ├── array.so │ │ ├── binascii.so │ │ ├── bz2.so │ │ ├── cPickle.so │ │ ├── cStringIO.so │ │ ├── cryptography-1.5-py2.7.egg-info │ │ ├── PKG-INFO │ │ ├── SOURCES.txt │ │ ├── dependency_links.txt │ │ ├── entry_points.txt │ │ ├── not-zip-safe │ │ ├── requires.txt │ │ └── top_level.txt │ │ ├── cryptography.hazmat.bindings._constant_time.so │ │ ├── cryptography.hazmat.bindings._openssl.so │ │ ├── datetime.so │ │ ├── fcntl.so │ │ ├── grp.so │ │ ├── include │ │ └── python2.7 │ │ │ └── pyconfig.h │ │ ├── itertools.so │ │ ├── lib │ │ └── python2.7 │ │ │ └── config │ │ │ └── Makefile │ │ ├── libcrypto.so.1.0.0 │ │ ├── libffi.so.6 │ │ ├── libncursesw.so.5 │ │ ├── libpython2.7.so.1.0 │ │ ├── libreadline.so.6 │ │ ├── libssl.so.1.0.0 │ │ ├── libtinfo.so.5 │ │ ├── libz.so.1 │ │ ├── main │ │ ├── math.so │ │ ├── operator.so │ │ ├── pyexpat.so │ │ ├── readline.so │ │ ├── requests │ │ └── cacert.pem │ │ ├── resource.so │ │ ├── select.so │ │ ├── strop.so │ │ ├── termios.so │ │ ├── time.so │ │ ├── unicodedata.so │ │ ├── user │ │ └── zlib.so └── main.py ├── main.py ├── requirements.txt └── settings.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Chinese [here](README_CN.md) 2 | # GitHubStar 3 | Auto star for gitstar.cn 4 | ## Installation 5 | Install Python 2.x,run```python --version```and```pip```for a test. 6 | 7 | To install pip, securely download [get-pip.py](https://bootstrap.pypa.io/get-pip.py) 8 | 9 | Then run the following: 10 | 11 | > python get-pip.py 12 | 13 | If you have downloaded it,skip the step. 14 | MAKE SURE that you have installed ```requests```. 15 | > pip install -r requirements.txt 16 | 17 | ## Usage 18 | ### Step 1 19 | Clone the repo 20 | ```git clone https://github.com/w568w/GitHubStar.git && cd GitHubStar``` 21 | 22 | ### Step 2 23 | Open```settings.py```, replace variables with your own infomation. 24 | ``` 25 | #############settings############# 26 | NAME = "1" #GitStar username 27 | PASSWORD = "1" #GitStar password 28 | GITNAME = "1" #Gitee username 29 | GITPASSWORD = "1" #Gitee password 30 | #############settings############# 31 | ``` 32 | ### Step 3 33 | Run```python -u main.py``` 34 | Everything is ok,hooray! 35 | -------------------------------------------------------------------------------- /README_CN.md: -------------------------------------------------------------------------------- 1 | Engish [here](README.md) 2 | # GitHubStar 3 | Git Star自动点赞工具 4 | # 快速开始 ( 针对 Linux 用户 ) 5 | 1. 执行```git clone https://github.com/w568w/GitHubStar.git && cd GitHubStar/executable/dist/main/```。 6 | 2. 打开```user```文件,替换以下内容(括号内不用输入) 7 | ``` 8 | w568w(GitStar用户名) 9 | 123456(GitStar密码) 10 | w568w(GitHub用户名) 11 | 123456(GitHub密码) 12 | (最后一行有个换行,请勿删除) 13 | ``` 14 | 3. 执行```./main < user```,完事儿! 15 | # 编译 16 | ## Linux 17 | ### Step1 18 | 安装python2.x 19 | 20 | 安装pip, 从 这里下载[get-pip.py](https://bootstrap.pypa.io/get-pip.py) 21 | 22 | 接着运行: 23 | 24 | > python get-pip.py 25 | 26 | 安装依赖 27 | 28 | > pip install -r requirements.txt 29 | 30 | ### Step2 31 | 打开```settings.py```,替换以下内容   32 | ``` 33 | #############settings############# 34 | NAME = "1" #GitStar用户名 35 | PASSWORD = "1" #GitStar密码 36 | GITNAME = "1" #github用户名 37 | GITPASSWORD = "1" #github密码 38 | #############settings############# 39 | ``` 40 | 把它们改成你自己的信息。 41 | ### Step3 42 | 运行```python -u main.py```, 43 | 完事儿! 44 | ## Windows 45 | 我好久没用过Windows了~ 46 | 你可以百度一下```windows python2.x安装教程```看看,祝你好运!:) 47 | -------------------------------------------------------------------------------- /executable/dist/main/_bisect.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_bisect.so -------------------------------------------------------------------------------- /executable/dist/main/_cffi_backend.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_cffi_backend.so -------------------------------------------------------------------------------- /executable/dist/main/_codecs_cn.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_codecs_cn.so -------------------------------------------------------------------------------- /executable/dist/main/_codecs_hk.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_codecs_hk.so -------------------------------------------------------------------------------- /executable/dist/main/_codecs_iso2022.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_codecs_iso2022.so -------------------------------------------------------------------------------- /executable/dist/main/_codecs_jp.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_codecs_jp.so -------------------------------------------------------------------------------- /executable/dist/main/_codecs_kr.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_codecs_kr.so -------------------------------------------------------------------------------- /executable/dist/main/_codecs_tw.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_codecs_tw.so -------------------------------------------------------------------------------- /executable/dist/main/_collections.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_collections.so -------------------------------------------------------------------------------- /executable/dist/main/_ctypes.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_ctypes.so -------------------------------------------------------------------------------- /executable/dist/main/_functools.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_functools.so -------------------------------------------------------------------------------- /executable/dist/main/_hashlib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_hashlib.so -------------------------------------------------------------------------------- /executable/dist/main/_heapq.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_heapq.so -------------------------------------------------------------------------------- /executable/dist/main/_io.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_io.so -------------------------------------------------------------------------------- /executable/dist/main/_json.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_json.so -------------------------------------------------------------------------------- /executable/dist/main/_locale.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_locale.so -------------------------------------------------------------------------------- /executable/dist/main/_multibytecodec.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_multibytecodec.so -------------------------------------------------------------------------------- /executable/dist/main/_random.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_random.so -------------------------------------------------------------------------------- /executable/dist/main/_socket.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_socket.so -------------------------------------------------------------------------------- /executable/dist/main/_ssl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_ssl.so -------------------------------------------------------------------------------- /executable/dist/main/_struct.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/_struct.so -------------------------------------------------------------------------------- /executable/dist/main/array.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/array.so -------------------------------------------------------------------------------- /executable/dist/main/binascii.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/binascii.so -------------------------------------------------------------------------------- /executable/dist/main/bz2.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/bz2.so -------------------------------------------------------------------------------- /executable/dist/main/cPickle.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/cPickle.so -------------------------------------------------------------------------------- /executable/dist/main/cStringIO.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/cStringIO.so -------------------------------------------------------------------------------- /executable/dist/main/cryptography-1.5-py2.7.egg-info/PKG-INFO: -------------------------------------------------------------------------------- 1 | Metadata-Version: 1.1 2 | Name: cryptography 3 | Version: 1.5 4 | Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers. 5 | Home-page: https://github.com/pyca/cryptography 6 | Author: The cryptography developers 7 | Author-email: cryptography-dev@python.org 8 | License: BSD or Apache License, Version 2.0 9 | Description: Cryptography 10 | ============ 11 | 12 | .. image:: https://img.shields.io/pypi/v/cryptography.svg 13 | :target: https://pypi.python.org/pypi/cryptography/ 14 | :alt: Latest Version 15 | 16 | .. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest 17 | :target: https://cryptography.io 18 | :alt: Latest Docs 19 | 20 | .. image:: https://travis-ci.org/pyca/cryptography.svg?branch=master 21 | :target: https://travis-ci.org/pyca/cryptography 22 | 23 | .. image:: https://codecov.io/github/pyca/cryptography/coverage.svg?branch=master 24 | :target: https://codecov.io/github/pyca/cryptography?branch=master 25 | 26 | 27 | ``cryptography`` is a package which provides cryptographic recipes and 28 | primitives to Python developers. Our goal is for it to be your "cryptographic 29 | standard library". It supports Python 2.6-2.7, Python 3.3+, and PyPy 2.6+. 30 | 31 | ``cryptography`` includes both high level recipes, and low level interfaces to 32 | common cryptographic algorithms such as symmetric ciphers, message digests and 33 | key derivation functions. For example, to encrypt something with 34 | ``cryptography``'s high level symmetric encryption recipe: 35 | 36 | .. code-block:: pycon 37 | 38 | >>> from cryptography.fernet import Fernet 39 | >>> # Put this somewhere safe! 40 | >>> key = Fernet.generate_key() 41 | >>> f = Fernet(key) 42 | >>> token = f.encrypt(b"A really secret message. Not for prying eyes.") 43 | >>> token 44 | '...' 45 | >>> f.decrypt(token) 46 | 'A really secret message. Not for prying eyes.' 47 | 48 | You can find more information in the `documentation`_. 49 | 50 | Discussion 51 | ~~~~~~~~~~ 52 | 53 | If you run into bugs, you can file them in our `issue tracker`_. 54 | 55 | We maintain a `cryptography-dev`_ mailing list for development discussion. 56 | 57 | You can also join ``#cryptography-dev`` on Freenode to ask questions or get 58 | involved. 59 | 60 | 61 | .. _`documentation`: https://cryptography.io/ 62 | .. _`issue tracker`: https://github.com/pyca/cryptography/issues 63 | .. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev 64 | 65 | Platform: UNKNOWN 66 | Classifier: Intended Audience :: Developers 67 | Classifier: License :: OSI Approved :: Apache Software License 68 | Classifier: License :: OSI Approved :: BSD License 69 | Classifier: Natural Language :: English 70 | Classifier: Operating System :: MacOS :: MacOS X 71 | Classifier: Operating System :: POSIX 72 | Classifier: Operating System :: POSIX :: BSD 73 | Classifier: Operating System :: POSIX :: Linux 74 | Classifier: Operating System :: Microsoft :: Windows 75 | Classifier: Programming Language :: Python 76 | Classifier: Programming Language :: Python :: 2 77 | Classifier: Programming Language :: Python :: 2.6 78 | Classifier: Programming Language :: Python :: 2.7 79 | Classifier: Programming Language :: Python :: 3 80 | Classifier: Programming Language :: Python :: 3.3 81 | Classifier: Programming Language :: Python :: 3.4 82 | Classifier: Programming Language :: Python :: 3.5 83 | Classifier: Programming Language :: Python :: Implementation :: CPython 84 | Classifier: Programming Language :: Python :: Implementation :: PyPy 85 | Classifier: Topic :: Security :: Cryptography 86 | -------------------------------------------------------------------------------- /executable/dist/main/cryptography-1.5-py2.7.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | AUTHORS.rst 2 | CHANGELOG.rst 3 | CONTRIBUTING.rst 4 | LICENSE 5 | LICENSE.APACHE 6 | LICENSE.BSD 7 | MANIFEST.in 8 | README.rst 9 | setup.cfg 10 | setup.py 11 | docs/Makefile 12 | docs/api-stability.rst 13 | docs/changelog.rst 14 | docs/community.rst 15 | docs/conf.py 16 | docs/cryptography-docs.py 17 | docs/doing-a-release.rst 18 | docs/exceptions.rst 19 | docs/faq.rst 20 | docs/fernet.rst 21 | docs/glossary.rst 22 | docs/index.rst 23 | docs/installation.rst 24 | docs/limitations.rst 25 | docs/make.bat 26 | docs/random-numbers.rst 27 | docs/security.rst 28 | docs/spelling_wordlist.txt 29 | docs/_static/.keep 30 | docs/development/c-bindings.rst 31 | docs/development/getting-started.rst 32 | docs/development/index.rst 33 | docs/development/reviewing-patches.rst 34 | docs/development/submitting-patches.rst 35 | docs/development/test-vectors.rst 36 | docs/development/custom-vectors/arc4.rst 37 | docs/development/custom-vectors/cast5.rst 38 | docs/development/custom-vectors/idea.rst 39 | docs/development/custom-vectors/rsa-oaep-sha2.rst 40 | docs/development/custom-vectors/secp256k1.rst 41 | docs/development/custom-vectors/seed.rst 42 | docs/development/custom-vectors/arc4/generate_arc4.py 43 | docs/development/custom-vectors/arc4/verify_arc4.go 44 | docs/development/custom-vectors/cast5/generate_cast5.py 45 | docs/development/custom-vectors/cast5/verify_cast5.go 46 | docs/development/custom-vectors/idea/generate_idea.py 47 | docs/development/custom-vectors/idea/verify_idea.py 48 | docs/development/custom-vectors/rsa-oaep-sha2/VerifyRSAOAEPSHA2.java 49 | docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py 50 | docs/development/custom-vectors/secp256k1/generate_secp256k1.py 51 | docs/development/custom-vectors/secp256k1/verify_secp256k1.py 52 | docs/development/custom-vectors/seed/generate_seed.py 53 | docs/development/custom-vectors/seed/verify_seed.py 54 | docs/hazmat/backends/commoncrypto.rst 55 | docs/hazmat/backends/index.rst 56 | docs/hazmat/backends/interfaces.rst 57 | docs/hazmat/backends/multibackend.rst 58 | docs/hazmat/backends/openssl.rst 59 | docs/hazmat/bindings/commoncrypto.rst 60 | docs/hazmat/bindings/index.rst 61 | docs/hazmat/bindings/openssl.rst 62 | docs/hazmat/primitives/constant-time.rst 63 | docs/hazmat/primitives/cryptographic-hashes.rst 64 | docs/hazmat/primitives/index.rst 65 | docs/hazmat/primitives/interfaces.rst 66 | docs/hazmat/primitives/key-derivation-functions.rst 67 | docs/hazmat/primitives/keywrap.rst 68 | docs/hazmat/primitives/padding.rst 69 | docs/hazmat/primitives/symmetric-encryption.rst 70 | docs/hazmat/primitives/twofactor.rst 71 | docs/hazmat/primitives/asymmetric/dh.rst 72 | docs/hazmat/primitives/asymmetric/dsa.rst 73 | docs/hazmat/primitives/asymmetric/ec.rst 74 | docs/hazmat/primitives/asymmetric/index.rst 75 | docs/hazmat/primitives/asymmetric/interfaces.rst 76 | docs/hazmat/primitives/asymmetric/rsa.rst 77 | docs/hazmat/primitives/asymmetric/serialization.rst 78 | docs/hazmat/primitives/asymmetric/utils.rst 79 | docs/hazmat/primitives/mac/cmac.rst 80 | docs/hazmat/primitives/mac/hmac.rst 81 | docs/hazmat/primitives/mac/index.rst 82 | docs/x509/index.rst 83 | docs/x509/reference.rst 84 | docs/x509/tutorial.rst 85 | src/_cffi_src/__init__.py 86 | src/_cffi_src/build_commoncrypto.py 87 | src/_cffi_src/build_constant_time.py 88 | src/_cffi_src/build_openssl.py 89 | src/_cffi_src/build_padding.py 90 | src/_cffi_src/utils.py 91 | src/_cffi_src/commoncrypto/__init__.py 92 | src/_cffi_src/commoncrypto/cf.py 93 | src/_cffi_src/commoncrypto/common_cryptor.py 94 | src/_cffi_src/commoncrypto/common_digest.py 95 | src/_cffi_src/commoncrypto/common_hmac.py 96 | src/_cffi_src/commoncrypto/common_key_derivation.py 97 | src/_cffi_src/commoncrypto/common_symmetric_key_wrap.py 98 | src/_cffi_src/commoncrypto/seccertificate.py 99 | src/_cffi_src/commoncrypto/secimport.py 100 | src/_cffi_src/commoncrypto/secitem.py 101 | src/_cffi_src/commoncrypto/seckey.py 102 | src/_cffi_src/commoncrypto/seckeychain.py 103 | src/_cffi_src/commoncrypto/secpolicy.py 104 | src/_cffi_src/commoncrypto/sectransform.py 105 | src/_cffi_src/commoncrypto/sectrust.py 106 | src/_cffi_src/commoncrypto/secure_transport.py 107 | src/_cffi_src/hazmat_src/constant_time.c 108 | src/_cffi_src/hazmat_src/constant_time.h 109 | src/_cffi_src/hazmat_src/padding.c 110 | src/_cffi_src/hazmat_src/padding.h 111 | src/_cffi_src/openssl/__init__.py 112 | src/_cffi_src/openssl/aes.py 113 | src/_cffi_src/openssl/asn1.py 114 | src/_cffi_src/openssl/bignum.py 115 | src/_cffi_src/openssl/bio.py 116 | src/_cffi_src/openssl/callbacks.py 117 | src/_cffi_src/openssl/cmac.py 118 | src/_cffi_src/openssl/cms.py 119 | src/_cffi_src/openssl/conf.py 120 | src/_cffi_src/openssl/crypto.py 121 | src/_cffi_src/openssl/cryptography.py 122 | src/_cffi_src/openssl/dh.py 123 | src/_cffi_src/openssl/dsa.py 124 | src/_cffi_src/openssl/ec.py 125 | src/_cffi_src/openssl/ecdh.py 126 | src/_cffi_src/openssl/ecdsa.py 127 | src/_cffi_src/openssl/engine.py 128 | src/_cffi_src/openssl/err.py 129 | src/_cffi_src/openssl/evp.py 130 | src/_cffi_src/openssl/hmac.py 131 | src/_cffi_src/openssl/nid.py 132 | src/_cffi_src/openssl/objects.py 133 | src/_cffi_src/openssl/ocsp.py 134 | src/_cffi_src/openssl/opensslv.py 135 | src/_cffi_src/openssl/pem.py 136 | src/_cffi_src/openssl/pkcs12.py 137 | src/_cffi_src/openssl/pkcs7.py 138 | src/_cffi_src/openssl/rand.py 139 | src/_cffi_src/openssl/rsa.py 140 | src/_cffi_src/openssl/ssl.py 141 | src/_cffi_src/openssl/x509.py 142 | src/_cffi_src/openssl/x509_vfy.py 143 | src/_cffi_src/openssl/x509name.py 144 | src/_cffi_src/openssl/x509v3.py 145 | src/cryptography/__about__.py 146 | src/cryptography/__init__.py 147 | src/cryptography/exceptions.py 148 | src/cryptography/fernet.py 149 | src/cryptography/utils.py 150 | src/cryptography.egg-info/PKG-INFO 151 | src/cryptography.egg-info/SOURCES.txt 152 | src/cryptography.egg-info/dependency_links.txt 153 | src/cryptography.egg-info/entry_points.txt 154 | src/cryptography.egg-info/not-zip-safe 155 | src/cryptography.egg-info/requires.txt 156 | src/cryptography.egg-info/top_level.txt 157 | src/cryptography/hazmat/__init__.py 158 | src/cryptography/hazmat/backends/__init__.py 159 | src/cryptography/hazmat/backends/interfaces.py 160 | src/cryptography/hazmat/backends/multibackend.py 161 | src/cryptography/hazmat/backends/commoncrypto/__init__.py 162 | src/cryptography/hazmat/backends/commoncrypto/backend.py 163 | src/cryptography/hazmat/backends/commoncrypto/ciphers.py 164 | src/cryptography/hazmat/backends/commoncrypto/hashes.py 165 | src/cryptography/hazmat/backends/commoncrypto/hmac.py 166 | src/cryptography/hazmat/backends/openssl/__init__.py 167 | src/cryptography/hazmat/backends/openssl/backend.py 168 | src/cryptography/hazmat/backends/openssl/ciphers.py 169 | src/cryptography/hazmat/backends/openssl/cmac.py 170 | src/cryptography/hazmat/backends/openssl/decode_asn1.py 171 | src/cryptography/hazmat/backends/openssl/dsa.py 172 | src/cryptography/hazmat/backends/openssl/ec.py 173 | src/cryptography/hazmat/backends/openssl/encode_asn1.py 174 | src/cryptography/hazmat/backends/openssl/hashes.py 175 | src/cryptography/hazmat/backends/openssl/hmac.py 176 | src/cryptography/hazmat/backends/openssl/rsa.py 177 | src/cryptography/hazmat/backends/openssl/utils.py 178 | src/cryptography/hazmat/backends/openssl/x509.py 179 | src/cryptography/hazmat/bindings/__init__.py 180 | src/cryptography/hazmat/bindings/commoncrypto/__init__.py 181 | src/cryptography/hazmat/bindings/commoncrypto/binding.py 182 | src/cryptography/hazmat/bindings/openssl/__init__.py 183 | src/cryptography/hazmat/bindings/openssl/_conditional.py 184 | src/cryptography/hazmat/bindings/openssl/binding.py 185 | src/cryptography/hazmat/primitives/__init__.py 186 | src/cryptography/hazmat/primitives/cmac.py 187 | src/cryptography/hazmat/primitives/constant_time.py 188 | src/cryptography/hazmat/primitives/hashes.py 189 | src/cryptography/hazmat/primitives/hmac.py 190 | src/cryptography/hazmat/primitives/keywrap.py 191 | src/cryptography/hazmat/primitives/padding.py 192 | src/cryptography/hazmat/primitives/serialization.py 193 | src/cryptography/hazmat/primitives/asymmetric/__init__.py 194 | src/cryptography/hazmat/primitives/asymmetric/dh.py 195 | src/cryptography/hazmat/primitives/asymmetric/dsa.py 196 | src/cryptography/hazmat/primitives/asymmetric/ec.py 197 | src/cryptography/hazmat/primitives/asymmetric/padding.py 198 | src/cryptography/hazmat/primitives/asymmetric/rsa.py 199 | src/cryptography/hazmat/primitives/asymmetric/utils.py 200 | src/cryptography/hazmat/primitives/ciphers/__init__.py 201 | src/cryptography/hazmat/primitives/ciphers/algorithms.py 202 | src/cryptography/hazmat/primitives/ciphers/base.py 203 | src/cryptography/hazmat/primitives/ciphers/modes.py 204 | src/cryptography/hazmat/primitives/interfaces/__init__.py 205 | src/cryptography/hazmat/primitives/kdf/__init__.py 206 | src/cryptography/hazmat/primitives/kdf/concatkdf.py 207 | src/cryptography/hazmat/primitives/kdf/hkdf.py 208 | src/cryptography/hazmat/primitives/kdf/kbkdf.py 209 | src/cryptography/hazmat/primitives/kdf/pbkdf2.py 210 | src/cryptography/hazmat/primitives/kdf/x963kdf.py 211 | src/cryptography/hazmat/primitives/twofactor/__init__.py 212 | src/cryptography/hazmat/primitives/twofactor/hotp.py 213 | src/cryptography/hazmat/primitives/twofactor/totp.py 214 | src/cryptography/hazmat/primitives/twofactor/utils.py 215 | src/cryptography/x509/__init__.py 216 | src/cryptography/x509/base.py 217 | src/cryptography/x509/extensions.py 218 | src/cryptography/x509/general_name.py 219 | src/cryptography/x509/name.py 220 | src/cryptography/x509/oid.py 221 | tests/__init__.py 222 | tests/conftest.py 223 | tests/doubles.py 224 | tests/test_fernet.py 225 | tests/test_interfaces.py 226 | tests/test_utils.py 227 | tests/test_warnings.py 228 | tests/test_x509.py 229 | tests/test_x509_crlbuilder.py 230 | tests/test_x509_ext.py 231 | tests/test_x509_revokedcertbuilder.py 232 | tests/utils.py 233 | tests/hazmat/__init__.py 234 | tests/hazmat/backends/__init__.py 235 | tests/hazmat/backends/test_commoncrypto.py 236 | tests/hazmat/backends/test_multibackend.py 237 | tests/hazmat/backends/test_openssl.py 238 | tests/hazmat/bindings/test_commoncrypto.py 239 | tests/hazmat/bindings/test_openssl.py 240 | tests/hazmat/primitives/__init__.py 241 | tests/hazmat/primitives/fixtures_dsa.py 242 | tests/hazmat/primitives/fixtures_ec.py 243 | tests/hazmat/primitives/fixtures_rsa.py 244 | tests/hazmat/primitives/test_3des.py 245 | tests/hazmat/primitives/test_aes.py 246 | tests/hazmat/primitives/test_arc4.py 247 | tests/hazmat/primitives/test_asym_utils.py 248 | tests/hazmat/primitives/test_block.py 249 | tests/hazmat/primitives/test_blowfish.py 250 | tests/hazmat/primitives/test_camellia.py 251 | tests/hazmat/primitives/test_cast5.py 252 | tests/hazmat/primitives/test_ciphers.py 253 | tests/hazmat/primitives/test_cmac.py 254 | tests/hazmat/primitives/test_concatkdf.py 255 | tests/hazmat/primitives/test_constant_time.py 256 | tests/hazmat/primitives/test_dh.py 257 | tests/hazmat/primitives/test_dsa.py 258 | tests/hazmat/primitives/test_ec.py 259 | tests/hazmat/primitives/test_hash_vectors.py 260 | tests/hazmat/primitives/test_hashes.py 261 | tests/hazmat/primitives/test_hkdf.py 262 | tests/hazmat/primitives/test_hkdf_vectors.py 263 | tests/hazmat/primitives/test_hmac.py 264 | tests/hazmat/primitives/test_hmac_vectors.py 265 | tests/hazmat/primitives/test_idea.py 266 | tests/hazmat/primitives/test_kbkdf.py 267 | tests/hazmat/primitives/test_kbkdf_vectors.py 268 | tests/hazmat/primitives/test_keywrap.py 269 | tests/hazmat/primitives/test_padding.py 270 | tests/hazmat/primitives/test_pbkdf2hmac.py 271 | tests/hazmat/primitives/test_pbkdf2hmac_vectors.py 272 | tests/hazmat/primitives/test_rsa.py 273 | tests/hazmat/primitives/test_seed.py 274 | tests/hazmat/primitives/test_serialization.py 275 | tests/hazmat/primitives/test_x963_vectors.py 276 | tests/hazmat/primitives/test_x963kdf.py 277 | tests/hazmat/primitives/utils.py 278 | tests/hazmat/primitives/twofactor/__init__.py 279 | tests/hazmat/primitives/twofactor/test_hotp.py 280 | tests/hazmat/primitives/twofactor/test_totp.py 281 | tests/hypothesis/__init__.py 282 | tests/hypothesis/test_fernet.py 283 | tests/hypothesis/test_padding.py -------------------------------------------------------------------------------- /executable/dist/main/cryptography-1.5-py2.7.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /executable/dist/main/cryptography-1.5-py2.7.egg-info/entry_points.txt: -------------------------------------------------------------------------------- 1 | [cryptography.backends] 2 | openssl = cryptography.hazmat.backends.openssl:backend 3 | 4 | -------------------------------------------------------------------------------- /executable/dist/main/cryptography-1.5-py2.7.egg-info/not-zip-safe: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /executable/dist/main/cryptography-1.5-py2.7.egg-info/requires.txt: -------------------------------------------------------------------------------- 1 | idna>=2.0 2 | pyasn1>=0.1.8 3 | six>=1.4.1 4 | setuptools>=11.3 5 | enum34 6 | ipaddress 7 | cffi>=1.4.1 8 | 9 | [docstest] 10 | doc8 11 | pyenchant 12 | readme_renderer 13 | sphinx 14 | sphinx_rtd_theme 15 | sphinxcontrib-spelling 16 | 17 | [pep8test] 18 | flake8 19 | flake8-import-order 20 | pep8-naming 21 | 22 | [test] 23 | pytest>=2.9.0 24 | pretend 25 | iso8601 26 | pyasn1_modules 27 | pytz 28 | hypothesis>=1.11.4 29 | cryptography_vectors==1.5 30 | -------------------------------------------------------------------------------- /executable/dist/main/cryptography-1.5-py2.7.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | _constant_time 2 | _openssl 3 | _padding 4 | cryptography 5 | -------------------------------------------------------------------------------- /executable/dist/main/cryptography.hazmat.bindings._constant_time.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/cryptography.hazmat.bindings._constant_time.so -------------------------------------------------------------------------------- /executable/dist/main/cryptography.hazmat.bindings._openssl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/cryptography.hazmat.bindings._openssl.so -------------------------------------------------------------------------------- /executable/dist/main/datetime.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/datetime.so -------------------------------------------------------------------------------- /executable/dist/main/fcntl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/fcntl.so -------------------------------------------------------------------------------- /executable/dist/main/grp.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/grp.so -------------------------------------------------------------------------------- /executable/dist/main/include/python2.7/pyconfig.h: -------------------------------------------------------------------------------- 1 | /* pyconfig.h. Generated from pyconfig.h.in by configure. */ 2 | /* pyconfig.h.in. Generated from configure.ac by autoheader. */ 3 | 4 | 5 | #ifndef Py_PYCONFIG_H 6 | #define Py_PYCONFIG_H 7 | 8 | 9 | /* Define if building universal (internal helper macro) */ 10 | /* #undef AC_APPLE_UNIVERSAL_BUILD */ 11 | 12 | /* Define for AIX if your compiler is a genuine IBM xlC/xlC_r and you want 13 | support for AIX C++ shared extension modules. */ 14 | /* #undef AIX_GENUINE_CPLUSPLUS */ 15 | 16 | /* Define this if you have AtheOS threads. */ 17 | /* #undef ATHEOS_THREADS */ 18 | 19 | /* Define this if you have BeOS threads. */ 20 | /* #undef BEOS_THREADS */ 21 | 22 | /* Define if you have the Mach cthreads package */ 23 | /* #undef C_THREADS */ 24 | 25 | /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM 26 | mixed-endian order (byte order 45670123) */ 27 | /* #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 */ 28 | 29 | /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the most 30 | significant byte first */ 31 | /* #undef DOUBLE_IS_BIG_ENDIAN_IEEE754 */ 32 | 33 | /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the 34 | least significant byte first */ 35 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 36 | 37 | /* Define if --enable-ipv6 is specified */ 38 | #define ENABLE_IPV6 1 39 | 40 | /* Define if flock needs to be linked with bsd library. */ 41 | /* #undef FLOCK_NEEDS_LIBBSD */ 42 | 43 | /* Define if getpgrp() must be called as getpgrp(0). */ 44 | /* #undef GETPGRP_HAVE_ARG */ 45 | 46 | /* Define if gettimeofday() does not have second (timezone) argument This is 47 | the case on Motorola V4 (R40V4.2) */ 48 | /* #undef GETTIMEOFDAY_NO_TZ */ 49 | 50 | /* Define to 1 if you have the `acosh' function. */ 51 | #define HAVE_ACOSH 1 52 | 53 | /* struct addrinfo (netdb.h) */ 54 | #define HAVE_ADDRINFO 1 55 | 56 | /* Define to 1 if you have the `alarm' function. */ 57 | #define HAVE_ALARM 1 58 | 59 | /* Define to 1 if you have the header file. */ 60 | #define HAVE_ALLOCA_H 1 61 | 62 | /* Define this if your time.h defines altzone. */ 63 | /* #undef HAVE_ALTZONE */ 64 | 65 | /* Define to 1 if you have the `asinh' function. */ 66 | #define HAVE_ASINH 1 67 | 68 | /* Define to 1 if you have the header file. */ 69 | #define HAVE_ASM_TYPES_H 1 70 | 71 | /* Define to 1 if you have the `atanh' function. */ 72 | #define HAVE_ATANH 1 73 | 74 | /* Define if GCC supports __attribute__((format(PyArg_ParseTuple, 2, 3))) */ 75 | /* #undef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE */ 76 | 77 | /* Define to 1 if you have the `bind_textdomain_codeset' function. */ 78 | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 79 | 80 | /* Define to 1 if you have the header file. */ 81 | /* #undef HAVE_BLUETOOTH_BLUETOOTH_H */ 82 | 83 | /* Define to 1 if you have the header file. */ 84 | /* #undef HAVE_BLUETOOTH_H */ 85 | 86 | /* Define if nice() returns success/failure instead of the new priority. */ 87 | /* #undef HAVE_BROKEN_NICE */ 88 | 89 | /* Define if the system reports an invalid PIPE_BUF value. */ 90 | /* #undef HAVE_BROKEN_PIPE_BUF */ 91 | 92 | /* Define if poll() sets errno on invalid file descriptors. */ 93 | /* #undef HAVE_BROKEN_POLL */ 94 | 95 | /* Define if the Posix semaphores do not work on your system */ 96 | /* #undef HAVE_BROKEN_POSIX_SEMAPHORES */ 97 | 98 | /* Define if pthread_sigmask() does not work on your system. */ 99 | /* #undef HAVE_BROKEN_PTHREAD_SIGMASK */ 100 | 101 | /* define to 1 if your sem_getvalue is broken. */ 102 | /* #undef HAVE_BROKEN_SEM_GETVALUE */ 103 | 104 | /* Define if `unsetenv` does not return an int. */ 105 | /* #undef HAVE_BROKEN_UNSETENV */ 106 | 107 | /* Define this if you have the type _Bool. */ 108 | #define HAVE_C99_BOOL 1 109 | 110 | /* Define to 1 if you have the 'chflags' function. */ 111 | /* #undef HAVE_CHFLAGS */ 112 | 113 | /* Define to 1 if you have the `chown' function. */ 114 | #define HAVE_CHOWN 1 115 | 116 | /* Define if you have the 'chroot' function. */ 117 | #define HAVE_CHROOT 1 118 | 119 | /* Define to 1 if you have the `clock' function. */ 120 | #define HAVE_CLOCK 1 121 | 122 | /* Define if the C compiler supports computed gotos. */ 123 | #define HAVE_COMPUTED_GOTOS 1 124 | 125 | /* Define to 1 if you have the `confstr' function. */ 126 | #define HAVE_CONFSTR 1 127 | 128 | /* Define to 1 if you have the header file. */ 129 | /* #undef HAVE_CONIO_H */ 130 | 131 | /* Define to 1 if you have the `copysign' function. */ 132 | #define HAVE_COPYSIGN 1 133 | 134 | /* Define to 1 if you have the `ctermid' function. */ 135 | #define HAVE_CTERMID 1 136 | 137 | /* Define if you have the 'ctermid_r' function. */ 138 | /* #undef HAVE_CTERMID_R */ 139 | 140 | /* Define to 1 if you have the header file. */ 141 | #define HAVE_CURSES_H 1 142 | 143 | /* Define if you have the 'is_term_resized' function. */ 144 | #define HAVE_CURSES_IS_TERM_RESIZED 1 145 | 146 | /* Define if you have the 'resizeterm' function. */ 147 | #define HAVE_CURSES_RESIZETERM 1 148 | 149 | /* Define if you have the 'resize_term' function. */ 150 | #define HAVE_CURSES_RESIZE_TERM 1 151 | 152 | /* Define to 1 if you have the declaration of `isfinite', and to 0 if you 153 | don't. */ 154 | #define HAVE_DECL_ISFINITE 1 155 | 156 | /* Define to 1 if you have the declaration of `isinf', and to 0 if you don't. 157 | */ 158 | #define HAVE_DECL_ISINF 1 159 | 160 | /* Define to 1 if you have the declaration of `isnan', and to 0 if you don't. 161 | */ 162 | #define HAVE_DECL_ISNAN 1 163 | 164 | /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. 165 | */ 166 | /* #undef HAVE_DECL_TZNAME */ 167 | 168 | /* Define to 1 if you have the device macros. */ 169 | #define HAVE_DEVICE_MACROS 1 170 | 171 | /* Define to 1 if you have the /dev/ptc device file. */ 172 | /* #undef HAVE_DEV_PTC */ 173 | 174 | /* Define to 1 if you have the /dev/ptmx device file. */ 175 | #define HAVE_DEV_PTMX 1 176 | 177 | /* Define to 1 if you have the header file. */ 178 | /* #undef HAVE_DIRECT_H */ 179 | 180 | /* Define to 1 if you have the header file, and it defines `DIR'. 181 | */ 182 | #define HAVE_DIRENT_H 1 183 | 184 | /* Define to 1 if you have the header file. */ 185 | #define HAVE_DLFCN_H 1 186 | 187 | /* Define to 1 if you have the `dlopen' function. */ 188 | #define HAVE_DLOPEN 1 189 | 190 | /* Define to 1 if you have the `dup2' function. */ 191 | #define HAVE_DUP2 1 192 | 193 | /* Defined when any dynamic module loading is enabled. */ 194 | #define HAVE_DYNAMIC_LOADING 1 195 | 196 | /* Define if you have the 'epoll' functions. */ 197 | #define HAVE_EPOLL 1 198 | 199 | /* Define to 1 if you have the `erf' function. */ 200 | #define HAVE_ERF 1 201 | 202 | /* Define to 1 if you have the `erfc' function. */ 203 | #define HAVE_ERFC 1 204 | 205 | /* Define to 1 if you have the header file. */ 206 | #define HAVE_ERRNO_H 1 207 | 208 | /* Define to 1 if you have the `execv' function. */ 209 | #define HAVE_EXECV 1 210 | 211 | /* Define to 1 if you have the `expm1' function. */ 212 | #define HAVE_EXPM1 1 213 | 214 | /* Define if you have the 'fchdir' function. */ 215 | #define HAVE_FCHDIR 1 216 | 217 | /* Define to 1 if you have the `fchmod' function. */ 218 | #define HAVE_FCHMOD 1 219 | 220 | /* Define to 1 if you have the `fchown' function. */ 221 | #define HAVE_FCHOWN 1 222 | 223 | /* Define to 1 if you have the header file. */ 224 | #define HAVE_FCNTL_H 1 225 | 226 | /* Define if you have the 'fdatasync' function. */ 227 | #define HAVE_FDATASYNC 1 228 | 229 | /* Define to 1 if you have the `finite' function. */ 230 | #define HAVE_FINITE 1 231 | 232 | /* Define to 1 if you have the `flock' function. */ 233 | #define HAVE_FLOCK 1 234 | 235 | /* Define to 1 if you have the `fork' function. */ 236 | #define HAVE_FORK 1 237 | 238 | /* Define to 1 if you have the `forkpty' function. */ 239 | #define HAVE_FORKPTY 1 240 | 241 | /* Define to 1 if you have the `fpathconf' function. */ 242 | #define HAVE_FPATHCONF 1 243 | 244 | /* Define to 1 if you have the `fseek64' function. */ 245 | /* #undef HAVE_FSEEK64 */ 246 | 247 | /* Define to 1 if you have the `fseeko' function. */ 248 | #define HAVE_FSEEKO 1 249 | 250 | /* Define to 1 if you have the `fstatvfs' function. */ 251 | #define HAVE_FSTATVFS 1 252 | 253 | /* Define if you have the 'fsync' function. */ 254 | #define HAVE_FSYNC 1 255 | 256 | /* Define to 1 if you have the `ftell64' function. */ 257 | /* #undef HAVE_FTELL64 */ 258 | 259 | /* Define to 1 if you have the `ftello' function. */ 260 | #define HAVE_FTELLO 1 261 | 262 | /* Define to 1 if you have the `ftime' function. */ 263 | #define HAVE_FTIME 1 264 | 265 | /* Define to 1 if you have the `ftruncate' function. */ 266 | #define HAVE_FTRUNCATE 1 267 | 268 | /* Define to 1 if you have the `gai_strerror' function. */ 269 | #define HAVE_GAI_STRERROR 1 270 | 271 | /* Define to 1 if you have the `gamma' function. */ 272 | #define HAVE_GAMMA 1 273 | 274 | /* Define if we can use gcc inline assembler to get and set x87 control word 275 | */ 276 | #define HAVE_GCC_ASM_FOR_X87 1 277 | 278 | /* Define if you have the getaddrinfo function. */ 279 | #define HAVE_GETADDRINFO 1 280 | 281 | /* Define to 1 if you have the `getcwd' function. */ 282 | #define HAVE_GETCWD 1 283 | 284 | /* Define this if you have flockfile(), getc_unlocked(), and funlockfile() */ 285 | #define HAVE_GETC_UNLOCKED 1 286 | 287 | /* Define to 1 if you have the `getentropy' function. */ 288 | /* #undef HAVE_GETENTROPY */ 289 | 290 | /* Define to 1 if you have the `getgroups' function. */ 291 | #define HAVE_GETGROUPS 1 292 | 293 | /* Define to 1 if you have the `gethostbyname' function. */ 294 | /* #undef HAVE_GETHOSTBYNAME */ 295 | 296 | /* Define this if you have some version of gethostbyname_r() */ 297 | #define HAVE_GETHOSTBYNAME_R 1 298 | 299 | /* Define this if you have the 3-arg version of gethostbyname_r(). */ 300 | /* #undef HAVE_GETHOSTBYNAME_R_3_ARG */ 301 | 302 | /* Define this if you have the 5-arg version of gethostbyname_r(). */ 303 | /* #undef HAVE_GETHOSTBYNAME_R_5_ARG */ 304 | 305 | /* Define this if you have the 6-arg version of gethostbyname_r(). */ 306 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 307 | 308 | /* Define to 1 if you have the `getitimer' function. */ 309 | #define HAVE_GETITIMER 1 310 | 311 | /* Define to 1 if you have the `getloadavg' function. */ 312 | #define HAVE_GETLOADAVG 1 313 | 314 | /* Define to 1 if you have the `getlogin' function. */ 315 | #define HAVE_GETLOGIN 1 316 | 317 | /* Define to 1 if you have the `getnameinfo' function. */ 318 | #define HAVE_GETNAMEINFO 1 319 | 320 | /* Define if you have the 'getpagesize' function. */ 321 | #define HAVE_GETPAGESIZE 1 322 | 323 | /* Define to 1 if you have the `getpeername' function. */ 324 | #define HAVE_GETPEERNAME 1 325 | 326 | /* Define to 1 if you have the `getpgid' function. */ 327 | #define HAVE_GETPGID 1 328 | 329 | /* Define to 1 if you have the `getpgrp' function. */ 330 | #define HAVE_GETPGRP 1 331 | 332 | /* Define to 1 if you have the `getpid' function. */ 333 | #define HAVE_GETPID 1 334 | 335 | /* Define to 1 if you have the `getpriority' function. */ 336 | #define HAVE_GETPRIORITY 1 337 | 338 | /* Define to 1 if you have the `getpwent' function. */ 339 | #define HAVE_GETPWENT 1 340 | 341 | /* Define to 1 if you have the `getresgid' function. */ 342 | #define HAVE_GETRESGID 1 343 | 344 | /* Define to 1 if you have the `getresuid' function. */ 345 | #define HAVE_GETRESUID 1 346 | 347 | /* Define to 1 if you have the `getsid' function. */ 348 | #define HAVE_GETSID 1 349 | 350 | /* Define to 1 if you have the `getspent' function. */ 351 | #define HAVE_GETSPENT 1 352 | 353 | /* Define to 1 if you have the `getspnam' function. */ 354 | #define HAVE_GETSPNAM 1 355 | 356 | /* Define to 1 if you have the `gettimeofday' function. */ 357 | #define HAVE_GETTIMEOFDAY 1 358 | 359 | /* Define to 1 if you have the `getwd' function. */ 360 | #define HAVE_GETWD 1 361 | 362 | /* Define to 1 if you have the header file. */ 363 | #define HAVE_GRP_H 1 364 | 365 | /* Define if you have the 'hstrerror' function. */ 366 | #define HAVE_HSTRERROR 1 367 | 368 | /* Define to 1 if you have the `hypot' function. */ 369 | #define HAVE_HYPOT 1 370 | 371 | /* Define to 1 if you have the header file. */ 372 | /* #undef HAVE_IEEEFP_H */ 373 | 374 | /* Define if you have the 'inet_aton' function. */ 375 | #define HAVE_INET_ATON 1 376 | 377 | /* Define if you have the 'inet_pton' function. */ 378 | #define HAVE_INET_PTON 1 379 | 380 | /* Define to 1 if you have the `initgroups' function. */ 381 | #define HAVE_INITGROUPS 1 382 | 383 | /* Define if your compiler provides int32_t. */ 384 | #define HAVE_INT32_T 1 385 | 386 | /* Define if your compiler provides int64_t. */ 387 | #define HAVE_INT64_T 1 388 | 389 | /* Define to 1 if you have the header file. */ 390 | #define HAVE_INTTYPES_H 1 391 | 392 | /* Define to 1 if you have the header file. */ 393 | /* #undef HAVE_IO_H */ 394 | 395 | /* Define to 1 if you have the `kill' function. */ 396 | #define HAVE_KILL 1 397 | 398 | /* Define to 1 if you have the `killpg' function. */ 399 | #define HAVE_KILLPG 1 400 | 401 | /* Define if you have the 'kqueue' functions. */ 402 | /* #undef HAVE_KQUEUE */ 403 | 404 | /* Define to 1 if you have the header file. */ 405 | #define HAVE_LANGINFO_H 1 406 | 407 | /* Defined to enable large file support when an off_t is bigger than a long 408 | and long long is available and at least as big as an off_t. You may need to 409 | add some flags for configuration and compilation to enable this mode. (For 410 | Solaris and Linux, the necessary defines are already defined.) */ 411 | #define HAVE_LARGEFILE_SUPPORT 1 412 | 413 | /* Define to 1 if you have the 'lchflags' function. */ 414 | /* #undef HAVE_LCHFLAGS */ 415 | 416 | /* Define to 1 if you have the `lchmod' function. */ 417 | /* #undef HAVE_LCHMOD */ 418 | 419 | /* Define to 1 if you have the `lchown' function. */ 420 | #define HAVE_LCHOWN 1 421 | 422 | /* Define to 1 if you have the `lgamma' function. */ 423 | #define HAVE_LGAMMA 1 424 | 425 | /* Define to 1 if you have the `dl' library (-ldl). */ 426 | #define HAVE_LIBDL 1 427 | 428 | /* Define to 1 if you have the `dld' library (-ldld). */ 429 | /* #undef HAVE_LIBDLD */ 430 | 431 | /* Define to 1 if you have the `ieee' library (-lieee). */ 432 | /* #undef HAVE_LIBIEEE */ 433 | 434 | /* Define to 1 if you have the header file. */ 435 | #define HAVE_LIBINTL_H 1 436 | 437 | /* Define if you have the readline library (-lreadline). */ 438 | #define HAVE_LIBREADLINE 1 439 | 440 | /* Define to 1 if you have the `resolv' library (-lresolv). */ 441 | /* #undef HAVE_LIBRESOLV */ 442 | 443 | /* Define to 1 if you have the header file. */ 444 | /* #undef HAVE_LIBUTIL_H */ 445 | 446 | /* Define if you have the 'link' function. */ 447 | #define HAVE_LINK 1 448 | 449 | /* Define to 1 if you have the header file. */ 450 | #define HAVE_LINUX_NETLINK_H 1 451 | 452 | /* Define to 1 if you have the header file. */ 453 | #define HAVE_LINUX_TIPC_H 1 454 | 455 | /* Define to 1 if you have the `log1p' function. */ 456 | #define HAVE_LOG1P 1 457 | 458 | /* Define this if you have the type long double. */ 459 | #define HAVE_LONG_DOUBLE 1 460 | 461 | /* Define this if you have the type long long. */ 462 | #define HAVE_LONG_LONG 1 463 | 464 | /* Define to 1 if you have the `lstat' function. */ 465 | #define HAVE_LSTAT 1 466 | 467 | /* Define this if you have the makedev macro. */ 468 | #define HAVE_MAKEDEV 1 469 | 470 | /* Define to 1 if you have the `memmove' function. */ 471 | #define HAVE_MEMMOVE 1 472 | 473 | /* Define to 1 if you have the header file. */ 474 | #define HAVE_MEMORY_H 1 475 | 476 | /* Define to 1 if you have the `mkfifo' function. */ 477 | #define HAVE_MKFIFO 1 478 | 479 | /* Define to 1 if you have the `mknod' function. */ 480 | #define HAVE_MKNOD 1 481 | 482 | /* Define to 1 if you have the `mktime' function. */ 483 | #define HAVE_MKTIME 1 484 | 485 | /* Define to 1 if you have the `mmap' function. */ 486 | #define HAVE_MMAP 1 487 | 488 | /* Define to 1 if you have the `mremap' function. */ 489 | #define HAVE_MREMAP 1 490 | 491 | /* Define to 1 if you have the header file. */ 492 | #define HAVE_NCURSES_H 1 493 | 494 | /* Define to 1 if you have the header file, and it defines `DIR'. */ 495 | /* #undef HAVE_NDIR_H */ 496 | 497 | /* Define to 1 if you have the header file. */ 498 | #define HAVE_NETPACKET_PACKET_H 1 499 | 500 | /* Define to 1 if you have the `nice' function. */ 501 | #define HAVE_NICE 1 502 | 503 | /* Define to 1 if you have the `openpty' function. */ 504 | #define HAVE_OPENPTY 1 505 | 506 | /* Define if compiling using MacOS X 10.5 SDK or later. */ 507 | /* #undef HAVE_OSX105_SDK */ 508 | 509 | /* Define to 1 if you have the `pathconf' function. */ 510 | #define HAVE_PATHCONF 1 511 | 512 | /* Define to 1 if you have the `pause' function. */ 513 | #define HAVE_PAUSE 1 514 | 515 | /* Define to 1 if you have the `plock' function. */ 516 | /* #undef HAVE_PLOCK */ 517 | 518 | /* Define to 1 if you have the `poll' function. */ 519 | #define HAVE_POLL 1 520 | 521 | /* Define to 1 if you have the header file. */ 522 | #define HAVE_POLL_H 1 523 | 524 | /* Define to 1 if you have the header file. */ 525 | /* #undef HAVE_PROCESS_H */ 526 | 527 | /* Define if your compiler supports function prototype */ 528 | #define HAVE_PROTOTYPES 1 529 | 530 | /* Define if you have GNU PTH threads. */ 531 | /* #undef HAVE_PTH */ 532 | 533 | /* Define to 1 if you have the `pthread_atfork' function. */ 534 | #define HAVE_PTHREAD_ATFORK 1 535 | 536 | /* Defined for Solaris 2.6 bug in pthread header. */ 537 | /* #undef HAVE_PTHREAD_DESTRUCTOR */ 538 | 539 | /* Define to 1 if you have the header file. */ 540 | #define HAVE_PTHREAD_H 1 541 | 542 | /* Define to 1 if you have the `pthread_init' function. */ 543 | /* #undef HAVE_PTHREAD_INIT */ 544 | 545 | /* Define to 1 if you have the `pthread_sigmask' function. */ 546 | #define HAVE_PTHREAD_SIGMASK 1 547 | 548 | /* Define to 1 if you have the header file. */ 549 | #define HAVE_PTY_H 1 550 | 551 | /* Define to 1 if you have the `putenv' function. */ 552 | #define HAVE_PUTENV 1 553 | 554 | /* Define if the libcrypto has RAND_egd */ 555 | #define HAVE_RAND_EGD 1 556 | 557 | /* Define to 1 if you have the `readlink' function. */ 558 | #define HAVE_READLINK 1 559 | 560 | /* Define to 1 if you have the `realpath' function. */ 561 | #define HAVE_REALPATH 1 562 | 563 | /* Define if you have readline 2.1 */ 564 | #define HAVE_RL_CALLBACK 1 565 | 566 | /* Define if you can turn off readline's signal handling. */ 567 | #define HAVE_RL_CATCH_SIGNAL 1 568 | 569 | /* Define if you have readline 2.2 */ 570 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 571 | 572 | /* Define if you have readline 4.0 */ 573 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 574 | 575 | /* Define if you have readline 4.2 */ 576 | #define HAVE_RL_COMPLETION_MATCHES 1 577 | 578 | /* Define if you have rl_completion_suppress_append */ 579 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 580 | 581 | /* Define if you have readline 4.0 */ 582 | #define HAVE_RL_PRE_INPUT_HOOK 1 583 | 584 | /* Define if you have readline 4.0 */ 585 | #define HAVE_RL_RESIZE_TERMINAL 1 586 | 587 | /* Define to 1 if you have the `round' function. */ 588 | #define HAVE_ROUND 1 589 | 590 | /* Define to 1 if you have the `select' function. */ 591 | #define HAVE_SELECT 1 592 | 593 | /* Define to 1 if you have the `sem_getvalue' function. */ 594 | #define HAVE_SEM_GETVALUE 1 595 | 596 | /* Define to 1 if you have the `sem_open' function. */ 597 | #define HAVE_SEM_OPEN 1 598 | 599 | /* Define to 1 if you have the `sem_timedwait' function. */ 600 | #define HAVE_SEM_TIMEDWAIT 1 601 | 602 | /* Define to 1 if you have the `sem_unlink' function. */ 603 | #define HAVE_SEM_UNLINK 1 604 | 605 | /* Define to 1 if you have the `setegid' function. */ 606 | #define HAVE_SETEGID 1 607 | 608 | /* Define to 1 if you have the `seteuid' function. */ 609 | #define HAVE_SETEUID 1 610 | 611 | /* Define to 1 if you have the `setgid' function. */ 612 | #define HAVE_SETGID 1 613 | 614 | /* Define if you have the 'setgroups' function. */ 615 | #define HAVE_SETGROUPS 1 616 | 617 | /* Define to 1 if you have the `setitimer' function. */ 618 | #define HAVE_SETITIMER 1 619 | 620 | /* Define to 1 if you have the `setlocale' function. */ 621 | #define HAVE_SETLOCALE 1 622 | 623 | /* Define to 1 if you have the `setpgid' function. */ 624 | #define HAVE_SETPGID 1 625 | 626 | /* Define to 1 if you have the `setpgrp' function. */ 627 | #define HAVE_SETPGRP 1 628 | 629 | /* Define to 1 if you have the `setregid' function. */ 630 | #define HAVE_SETREGID 1 631 | 632 | /* Define to 1 if you have the `setresgid' function. */ 633 | #define HAVE_SETRESGID 1 634 | 635 | /* Define to 1 if you have the `setresuid' function. */ 636 | #define HAVE_SETRESUID 1 637 | 638 | /* Define to 1 if you have the `setreuid' function. */ 639 | #define HAVE_SETREUID 1 640 | 641 | /* Define to 1 if you have the `setsid' function. */ 642 | #define HAVE_SETSID 1 643 | 644 | /* Define to 1 if you have the `setuid' function. */ 645 | #define HAVE_SETUID 1 646 | 647 | /* Define to 1 if you have the `setvbuf' function. */ 648 | #define HAVE_SETVBUF 1 649 | 650 | /* Define to 1 if you have the header file. */ 651 | #define HAVE_SHADOW_H 1 652 | 653 | /* Define to 1 if you have the `sigaction' function. */ 654 | #define HAVE_SIGACTION 1 655 | 656 | /* Define to 1 if you have the `siginterrupt' function. */ 657 | #define HAVE_SIGINTERRUPT 1 658 | 659 | /* Define to 1 if you have the header file. */ 660 | #define HAVE_SIGNAL_H 1 661 | 662 | /* Define to 1 if you have the `sigrelse' function. */ 663 | #define HAVE_SIGRELSE 1 664 | 665 | /* Define to 1 if you have the `snprintf' function. */ 666 | #define HAVE_SNPRINTF 1 667 | 668 | /* Define if sockaddr has sa_len member */ 669 | /* #undef HAVE_SOCKADDR_SA_LEN */ 670 | 671 | /* struct sockaddr_storage (sys/socket.h) */ 672 | #define HAVE_SOCKADDR_STORAGE 1 673 | 674 | /* Define if you have the 'socketpair' function. */ 675 | #define HAVE_SOCKETPAIR 1 676 | 677 | /* Define to 1 if you have the header file. */ 678 | #define HAVE_SPAWN_H 1 679 | 680 | /* Define if your compiler provides ssize_t */ 681 | #define HAVE_SSIZE_T 1 682 | 683 | /* Define to 1 if you have the `statvfs' function. */ 684 | #define HAVE_STATVFS 1 685 | 686 | /* Define if you have struct stat.st_mtim.tv_nsec */ 687 | #define HAVE_STAT_TV_NSEC 1 688 | 689 | /* Define if you have struct stat.st_mtimensec */ 690 | /* #undef HAVE_STAT_TV_NSEC2 */ 691 | 692 | /* Define if your compiler supports variable length function prototypes (e.g. 693 | void fprintf(FILE *, char *, ...);) *and* */ 694 | #define HAVE_STDARG_PROTOTYPES 1 695 | 696 | /* Define to 1 if you have the header file. */ 697 | #define HAVE_STDINT_H 1 698 | 699 | /* Define to 1 if you have the header file. */ 700 | #define HAVE_STDLIB_H 1 701 | 702 | /* Define to 1 if you have the `strdup' function. */ 703 | #define HAVE_STRDUP 1 704 | 705 | /* Define to 1 if you have the `strftime' function. */ 706 | #define HAVE_STRFTIME 1 707 | 708 | /* Define to 1 if you have the header file. */ 709 | #define HAVE_STRINGS_H 1 710 | 711 | /* Define to 1 if you have the header file. */ 712 | #define HAVE_STRING_H 1 713 | 714 | /* Define to 1 if you have the header file. */ 715 | #define HAVE_STROPTS_H 1 716 | 717 | /* Define to 1 if `st_birthtime' is a member of `struct stat'. */ 718 | /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */ 719 | 720 | /* Define to 1 if `st_blksize' is a member of `struct stat'. */ 721 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 722 | 723 | /* Define to 1 if `st_blocks' is a member of `struct stat'. */ 724 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 725 | 726 | /* Define to 1 if `st_flags' is a member of `struct stat'. */ 727 | /* #undef HAVE_STRUCT_STAT_ST_FLAGS */ 728 | 729 | /* Define to 1 if `st_gen' is a member of `struct stat'. */ 730 | /* #undef HAVE_STRUCT_STAT_ST_GEN */ 731 | 732 | /* Define to 1 if `st_rdev' is a member of `struct stat'. */ 733 | #define HAVE_STRUCT_STAT_ST_RDEV 1 734 | 735 | /* Define to 1 if `tm_zone' is a member of `struct tm'. */ 736 | #define HAVE_STRUCT_TM_TM_ZONE 1 737 | 738 | /* Define if you have the 'symlink' function. */ 739 | #define HAVE_SYMLINK 1 740 | 741 | /* Define to 1 if you have the `sysconf' function. */ 742 | #define HAVE_SYSCONF 1 743 | 744 | /* Define to 1 if you have the header file. */ 745 | #define HAVE_SYSEXITS_H 1 746 | 747 | /* Define to 1 if you have the header file. */ 748 | /* #undef HAVE_SYS_AUDIOIO_H */ 749 | 750 | /* Define to 1 if you have the header file. */ 751 | /* #undef HAVE_SYS_BSDTTY_H */ 752 | 753 | /* Define to 1 if you have the header file, and it defines `DIR'. 754 | */ 755 | /* #undef HAVE_SYS_DIR_H */ 756 | 757 | /* Define to 1 if you have the header file. */ 758 | #define HAVE_SYS_EPOLL_H 1 759 | 760 | /* Define to 1 if you have the header file. */ 761 | /* #undef HAVE_SYS_EVENT_H */ 762 | 763 | /* Define to 1 if you have the header file. */ 764 | #define HAVE_SYS_FILE_H 1 765 | 766 | /* Define to 1 if you have the header file. */ 767 | /* #undef HAVE_SYS_LOADAVG_H */ 768 | 769 | /* Define to 1 if you have the header file. */ 770 | /* #undef HAVE_SYS_LOCK_H */ 771 | 772 | /* Define to 1 if you have the header file. */ 773 | /* #undef HAVE_SYS_MKDEV_H */ 774 | 775 | /* Define to 1 if you have the header file. */ 776 | /* #undef HAVE_SYS_MODEM_H */ 777 | 778 | /* Define to 1 if you have the header file, and it defines `DIR'. 779 | */ 780 | /* #undef HAVE_SYS_NDIR_H */ 781 | 782 | /* Define to 1 if you have the header file. */ 783 | #define HAVE_SYS_PARAM_H 1 784 | 785 | /* Define to 1 if you have the header file. */ 786 | #define HAVE_SYS_POLL_H 1 787 | 788 | /* Define to 1 if you have the header file. */ 789 | #define HAVE_SYS_RESOURCE_H 1 790 | 791 | /* Define to 1 if you have the header file. */ 792 | #define HAVE_SYS_SELECT_H 1 793 | 794 | /* Define to 1 if you have the header file. */ 795 | #define HAVE_SYS_SOCKET_H 1 796 | 797 | /* Define to 1 if you have the header file. */ 798 | #define HAVE_SYS_STATVFS_H 1 799 | 800 | /* Define to 1 if you have the header file. */ 801 | #define HAVE_SYS_STAT_H 1 802 | 803 | /* Define to 1 if you have the header file. */ 804 | /* #undef HAVE_SYS_TERMIO_H */ 805 | 806 | /* Define to 1 if you have the header file. */ 807 | #define HAVE_SYS_TIMES_H 1 808 | 809 | /* Define to 1 if you have the header file. */ 810 | #define HAVE_SYS_TIME_H 1 811 | 812 | /* Define to 1 if you have the header file. */ 813 | #define HAVE_SYS_TYPES_H 1 814 | 815 | /* Define to 1 if you have the header file. */ 816 | #define HAVE_SYS_UN_H 1 817 | 818 | /* Define to 1 if you have the header file. */ 819 | #define HAVE_SYS_UTSNAME_H 1 820 | 821 | /* Define to 1 if you have the header file. */ 822 | #define HAVE_SYS_WAIT_H 1 823 | 824 | /* Define to 1 if you have the `tcgetpgrp' function. */ 825 | #define HAVE_TCGETPGRP 1 826 | 827 | /* Define to 1 if you have the `tcsetpgrp' function. */ 828 | #define HAVE_TCSETPGRP 1 829 | 830 | /* Define to 1 if you have the `tempnam' function. */ 831 | #define HAVE_TEMPNAM 1 832 | 833 | /* Define to 1 if you have the header file. */ 834 | #define HAVE_TERMIOS_H 1 835 | 836 | /* Define to 1 if you have the header file. */ 837 | #define HAVE_TERM_H 1 838 | 839 | /* Define to 1 if you have the `tgamma' function. */ 840 | #define HAVE_TGAMMA 1 841 | 842 | /* Define to 1 if you have the header file. */ 843 | /* #undef HAVE_THREAD_H */ 844 | 845 | /* Define to 1 if you have the `timegm' function. */ 846 | #define HAVE_TIMEGM 1 847 | 848 | /* Define to 1 if you have the `times' function. */ 849 | #define HAVE_TIMES 1 850 | 851 | /* Define to 1 if you have the `tmpfile' function. */ 852 | #define HAVE_TMPFILE 1 853 | 854 | /* Define to 1 if you have the `tmpnam' function. */ 855 | #define HAVE_TMPNAM 1 856 | 857 | /* Define to 1 if you have the `tmpnam_r' function. */ 858 | #define HAVE_TMPNAM_R 1 859 | 860 | /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use 861 | `HAVE_STRUCT_TM_TM_ZONE' instead. */ 862 | #define HAVE_TM_ZONE 1 863 | 864 | /* Define to 1 if you have the `truncate' function. */ 865 | #define HAVE_TRUNCATE 1 866 | 867 | /* Define to 1 if you don't have `tm_zone' but do have the external array 868 | `tzname'. */ 869 | /* #undef HAVE_TZNAME */ 870 | 871 | /* Define this if you have tcl and TCL_UTF_MAX==6 */ 872 | /* #undef HAVE_UCS4_TCL */ 873 | 874 | /* Define if your compiler provides uint32_t. */ 875 | #define HAVE_UINT32_T 1 876 | 877 | /* Define if your compiler provides uint64_t. */ 878 | #define HAVE_UINT64_T 1 879 | 880 | /* Define to 1 if the system has the type `uintptr_t'. */ 881 | #define HAVE_UINTPTR_T 1 882 | 883 | /* Define to 1 if you have the `uname' function. */ 884 | #define HAVE_UNAME 1 885 | 886 | /* Define to 1 if you have the header file. */ 887 | #define HAVE_UNISTD_H 1 888 | 889 | /* Define to 1 if you have the `unsetenv' function. */ 890 | #define HAVE_UNSETENV 1 891 | 892 | /* Define if you have a useable wchar_t type defined in wchar.h; useable means 893 | wchar_t must be an unsigned type with at least 16 bits. (see 894 | Include/unicodeobject.h). */ 895 | /* #undef HAVE_USABLE_WCHAR_T */ 896 | 897 | /* Define to 1 if you have the header file. */ 898 | /* #undef HAVE_UTIL_H */ 899 | 900 | /* Define to 1 if you have the `utimes' function. */ 901 | #define HAVE_UTIMES 1 902 | 903 | /* Define to 1 if you have the header file. */ 904 | #define HAVE_UTIME_H 1 905 | 906 | /* Define to 1 if you have the `wait3' function. */ 907 | #define HAVE_WAIT3 1 908 | 909 | /* Define to 1 if you have the `wait4' function. */ 910 | #define HAVE_WAIT4 1 911 | 912 | /* Define to 1 if you have the `waitpid' function. */ 913 | #define HAVE_WAITPID 1 914 | 915 | /* Define if the compiler provides a wchar.h header file. */ 916 | #define HAVE_WCHAR_H 1 917 | 918 | /* Define to 1 if you have the `wcscoll' function. */ 919 | #define HAVE_WCSCOLL 1 920 | 921 | /* Define if tzset() actually switches the local timezone in a meaningful way. 922 | */ 923 | #define HAVE_WORKING_TZSET 1 924 | 925 | /* Define if the zlib library has inflateCopy */ 926 | #define HAVE_ZLIB_COPY 1 927 | 928 | /* Define to 1 if you have the `_getpty' function. */ 929 | /* #undef HAVE__GETPTY */ 930 | 931 | /* Define if you are using Mach cthreads directly under /include */ 932 | /* #undef HURD_C_THREADS */ 933 | 934 | /* Define if you are using Mach cthreads under mach / */ 935 | /* #undef MACH_C_THREADS */ 936 | 937 | /* Define to 1 if `major', `minor', and `makedev' are declared in . 938 | */ 939 | /* #undef MAJOR_IN_MKDEV */ 940 | 941 | /* Define to 1 if `major', `minor', and `makedev' are declared in 942 | . */ 943 | /* #undef MAJOR_IN_SYSMACROS */ 944 | 945 | /* Define if mvwdelch in curses.h is an expression. */ 946 | #define MVWDELCH_IS_EXPRESSION 1 947 | 948 | /* Define to the address where bug reports for this package should be sent. */ 949 | /* #undef PACKAGE_BUGREPORT */ 950 | 951 | /* Define to the full name of this package. */ 952 | /* #undef PACKAGE_NAME */ 953 | 954 | /* Define to the full name and version of this package. */ 955 | /* #undef PACKAGE_STRING */ 956 | 957 | /* Define to the one symbol short name of this package. */ 958 | /* #undef PACKAGE_TARNAME */ 959 | 960 | /* Define to the home page for this package. */ 961 | /* #undef PACKAGE_URL */ 962 | 963 | /* Define to the version of this package. */ 964 | /* #undef PACKAGE_VERSION */ 965 | 966 | /* Define if POSIX semaphores aren't enabled on your system */ 967 | /* #undef POSIX_SEMAPHORES_NOT_ENABLED */ 968 | 969 | /* Defined if PTHREAD_SCOPE_SYSTEM supported. */ 970 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 971 | 972 | /* Define as the preferred size in bits of long digits */ 973 | /* #undef PYLONG_BITS_IN_DIGIT */ 974 | 975 | /* Define to printf format modifier for long long type */ 976 | #define PY_FORMAT_LONG_LONG "ll" 977 | 978 | /* Define to printf format modifier for Py_ssize_t */ 979 | #define PY_FORMAT_SIZE_T "z" 980 | 981 | /* Define as the integral type used for Unicode representation. */ 982 | #define PY_UNICODE_TYPE unsigned long 983 | 984 | /* Define if you want to build an interpreter with many run-time checks. */ 985 | /* #undef Py_DEBUG */ 986 | 987 | /* Defined if Python is built as a shared library. */ 988 | #define Py_ENABLE_SHARED 1 989 | 990 | /* Define as the size of the unicode type. */ 991 | #define Py_UNICODE_SIZE 4 992 | 993 | /* Define if you want to have a Unicode type. */ 994 | #define Py_USING_UNICODE 1 995 | 996 | /* assume C89 semantics that RETSIGTYPE is always void */ 997 | #define RETSIGTYPE void 998 | 999 | /* Define if setpgrp() must be called as setpgrp(0, 0). */ 1000 | /* #undef SETPGRP_HAVE_ARG */ 1001 | 1002 | /* Define this to be extension of shared libraries (including the dot!). */ 1003 | #define SHLIB_EXT ".so" 1004 | 1005 | /* Define if i>>j for signed int i does not extend the sign bit when i < 0 */ 1006 | /* #undef SIGNED_RIGHT_SHIFT_ZERO_FILLS */ 1007 | 1008 | /* The size of `double', as computed by sizeof. */ 1009 | #define SIZEOF_DOUBLE 8 1010 | 1011 | /* The size of `float', as computed by sizeof. */ 1012 | #define SIZEOF_FLOAT 4 1013 | 1014 | /* The size of `fpos_t', as computed by sizeof. */ 1015 | #define SIZEOF_FPOS_T 16 1016 | 1017 | /* The size of `int', as computed by sizeof. */ 1018 | #define SIZEOF_INT 4 1019 | 1020 | /* The size of `long', as computed by sizeof. */ 1021 | #define SIZEOF_LONG 4 1022 | 1023 | /* The size of `long double', as computed by sizeof. */ 1024 | #define SIZEOF_LONG_DOUBLE 12 1025 | 1026 | /* The size of `long long', as computed by sizeof. */ 1027 | #define SIZEOF_LONG_LONG 8 1028 | 1029 | /* The size of `off_t', as computed by sizeof. */ 1030 | #define SIZEOF_OFF_T 8 1031 | 1032 | /* The size of `pid_t', as computed by sizeof. */ 1033 | #define SIZEOF_PID_T 4 1034 | 1035 | /* The size of `pthread_t', as computed by sizeof. */ 1036 | #define SIZEOF_PTHREAD_T 4 1037 | 1038 | /* The size of `short', as computed by sizeof. */ 1039 | #define SIZEOF_SHORT 2 1040 | 1041 | /* The size of `size_t', as computed by sizeof. */ 1042 | #define SIZEOF_SIZE_T 4 1043 | 1044 | /* The size of `time_t', as computed by sizeof. */ 1045 | #define SIZEOF_TIME_T 4 1046 | 1047 | /* The size of `uintptr_t', as computed by sizeof. */ 1048 | #define SIZEOF_UINTPTR_T 4 1049 | 1050 | /* The size of `void *', as computed by sizeof. */ 1051 | #define SIZEOF_VOID_P 4 1052 | 1053 | /* The size of `wchar_t', as computed by sizeof. */ 1054 | #define SIZEOF_WCHAR_T 4 1055 | 1056 | /* The size of `_Bool', as computed by sizeof. */ 1057 | #define SIZEOF__BOOL 1 1058 | 1059 | /* Define to 1 if you have the ANSI C header files. */ 1060 | #define STDC_HEADERS 1 1061 | 1062 | /* Define if you can safely include both and 1063 | (which you can't on SCO ODT 3.0). */ 1064 | #define SYS_SELECT_WITH_SYS_TIME 1 1065 | 1066 | /* Define if tanh(-0.) is -0., or if platform doesn't have signed zeros */ 1067 | #define TANH_PRESERVES_ZERO_SIGN 1 1068 | 1069 | /* Define to 1 if you can safely include both and . */ 1070 | #define TIME_WITH_SYS_TIME 1 1071 | 1072 | /* Define to 1 if your declares `struct tm'. */ 1073 | /* #undef TM_IN_SYS_TIME */ 1074 | 1075 | /* Define if you want to use computed gotos in ceval.c. */ 1076 | /* #undef USE_COMPUTED_GOTOS */ 1077 | 1078 | /* Enable extensions on AIX 3, Interix. */ 1079 | #ifndef _ALL_SOURCE 1080 | # define _ALL_SOURCE 1 1081 | #endif 1082 | /* Enable GNU extensions on systems that have them. */ 1083 | #ifndef _GNU_SOURCE 1084 | # define _GNU_SOURCE 1 1085 | #endif 1086 | /* Enable threading extensions on Solaris. */ 1087 | #ifndef _POSIX_PTHREAD_SEMANTICS 1088 | # define _POSIX_PTHREAD_SEMANTICS 1 1089 | #endif 1090 | /* Enable extensions on HP NonStop. */ 1091 | #ifndef _TANDEM_SOURCE 1092 | # define _TANDEM_SOURCE 1 1093 | #endif 1094 | /* Enable general extensions on Solaris. */ 1095 | #ifndef __EXTENSIONS__ 1096 | # define __EXTENSIONS__ 1 1097 | #endif 1098 | 1099 | 1100 | /* Define if you want to use MacPython modules on MacOSX in unix-Python. */ 1101 | /* #undef USE_TOOLBOX_OBJECT_GLUE */ 1102 | 1103 | /* Define if a va_list is an array of some kind */ 1104 | /* #undef VA_LIST_IS_ARRAY */ 1105 | 1106 | /* Define if you want SIGFPE handled (see Include/pyfpe.h). */ 1107 | /* #undef WANT_SIGFPE_HANDLER */ 1108 | 1109 | /* Define if you want wctype.h functions to be used instead of the one 1110 | supplied by Python itself. (see Include/unicodectype.h). */ 1111 | /* #undef WANT_WCTYPE_FUNCTIONS */ 1112 | 1113 | /* Define if WINDOW in curses.h offers a field _flags. */ 1114 | #define WINDOW_HAS_FLAGS 1 1115 | 1116 | /* Define if you want documentation strings in extension modules */ 1117 | #define WITH_DOC_STRINGS 1 1118 | 1119 | /* Define if you want to use the new-style (Openstep, Rhapsody, MacOS) dynamic 1120 | linker (dyld) instead of the old-style (NextStep) dynamic linker (rld). 1121 | Dyld is necessary to support frameworks. */ 1122 | /* #undef WITH_DYLD */ 1123 | 1124 | /* Define to 1 if libintl is needed for locale functions. */ 1125 | /* #undef WITH_LIBINTL */ 1126 | 1127 | /* Define if you want to produce an OpenStep/Rhapsody framework (shared 1128 | library plus accessory files). */ 1129 | /* #undef WITH_NEXT_FRAMEWORK */ 1130 | 1131 | /* Define if you want to compile in Python-specific mallocs */ 1132 | #define WITH_PYMALLOC 1 1133 | 1134 | /* Define if you want to compile in rudimentary thread support */ 1135 | #define WITH_THREAD 1 1136 | 1137 | /* Define to profile with the Pentium timestamp counter */ 1138 | /* #undef WITH_TSC */ 1139 | 1140 | /* Define if you want pymalloc to be disabled when running under valgrind */ 1141 | /* #undef WITH_VALGRIND */ 1142 | 1143 | /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 1144 | significant byte first (like Motorola and SPARC, unlike Intel). */ 1145 | #if defined AC_APPLE_UNIVERSAL_BUILD 1146 | # if defined __BIG_ENDIAN__ 1147 | # define WORDS_BIGENDIAN 1 1148 | # endif 1149 | #else 1150 | # ifndef WORDS_BIGENDIAN 1151 | /* # undef WORDS_BIGENDIAN */ 1152 | # endif 1153 | #endif 1154 | 1155 | /* Define if arithmetic is subject to x87-style double rounding issue */ 1156 | #define X87_DOUBLE_ROUNDING 1 1157 | 1158 | /* Define on OpenBSD to activate all library features */ 1159 | /* #undef _BSD_SOURCE */ 1160 | 1161 | /* Define on Irix to enable u_int */ 1162 | #define _BSD_TYPES 1 1163 | 1164 | /* Define on Darwin to activate all library features */ 1165 | #define _DARWIN_C_SOURCE 1 1166 | 1167 | /* This must be set to 64 on some systems to enable large file support. */ 1168 | #define _FILE_OFFSET_BITS 64 1169 | 1170 | /* Define on Linux to activate all library features */ 1171 | #define _GNU_SOURCE 1 1172 | 1173 | /* This must be defined on some systems to enable large file support. */ 1174 | #define _LARGEFILE_SOURCE 1 1175 | 1176 | /* This must be defined on AIX systems to enable large file support. */ 1177 | /* #undef _LARGE_FILES */ 1178 | 1179 | /* Define to 1 if on MINIX. */ 1180 | /* #undef _MINIX */ 1181 | 1182 | /* Define on NetBSD to activate all library features */ 1183 | #define _NETBSD_SOURCE 1 1184 | 1185 | /* Define _OSF_SOURCE to get the makedev macro. */ 1186 | /* #undef _OSF_SOURCE */ 1187 | 1188 | /* Define to 2 if the system does not provide POSIX.1 features except with 1189 | this defined. */ 1190 | /* #undef _POSIX_1_SOURCE */ 1191 | 1192 | /* Define to activate features from IEEE Stds 1003.1-2001 */ 1193 | #define _POSIX_C_SOURCE 200112L 1194 | 1195 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 1196 | /* #undef _POSIX_SOURCE */ 1197 | 1198 | /* Define if you have POSIX threads, and your system does not define that. */ 1199 | /* #undef _POSIX_THREADS */ 1200 | 1201 | /* Define to force use of thread-safe errno, h_errno, and other functions */ 1202 | /* #undef _REENTRANT */ 1203 | 1204 | /* Define for Solaris 2.5.1 so the uint32_t typedef from , 1205 | , or is not used. If the typedef were allowed, the 1206 | #define below would cause a syntax error. */ 1207 | /* #undef _UINT32_T */ 1208 | 1209 | /* Define for Solaris 2.5.1 so the uint64_t typedef from , 1210 | , or is not used. If the typedef were allowed, the 1211 | #define below would cause a syntax error. */ 1212 | /* #undef _UINT64_T */ 1213 | 1214 | /* Define to the level of X/Open that your system supports */ 1215 | #define _XOPEN_SOURCE 600 1216 | 1217 | /* Define to activate Unix95-and-earlier features */ 1218 | #define _XOPEN_SOURCE_EXTENDED 1 1219 | 1220 | /* Define on FreeBSD to activate all library features */ 1221 | #define __BSD_VISIBLE 1 1222 | 1223 | /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 1224 | #ifndef __CHAR_UNSIGNED__ 1225 | /* # undef __CHAR_UNSIGNED__ */ 1226 | #endif 1227 | 1228 | /* Defined on Solaris to see additional function prototypes. */ 1229 | #define __EXTENSIONS__ 1 1230 | 1231 | /* Define to 'long' if doesn't define. */ 1232 | /* #undef clock_t */ 1233 | 1234 | /* Define to empty if `const' does not conform to ANSI C. */ 1235 | /* #undef const */ 1236 | 1237 | /* Define to `int' if doesn't define. */ 1238 | /* #undef gid_t */ 1239 | 1240 | /* Define to the type of a signed integer type of width exactly 32 bits if 1241 | such a type exists and the standard includes do not define it. */ 1242 | /* #undef int32_t */ 1243 | 1244 | /* Define to the type of a signed integer type of width exactly 64 bits if 1245 | such a type exists and the standard includes do not define it. */ 1246 | /* #undef int64_t */ 1247 | 1248 | /* Define to `int' if does not define. */ 1249 | /* #undef mode_t */ 1250 | 1251 | /* Define to `long int' if does not define. */ 1252 | /* #undef off_t */ 1253 | 1254 | /* Define to `int' if does not define. */ 1255 | /* #undef pid_t */ 1256 | 1257 | /* Define to empty if the keyword does not work. */ 1258 | /* #undef signed */ 1259 | 1260 | /* Define to `unsigned int' if does not define. */ 1261 | /* #undef size_t */ 1262 | 1263 | /* Define to `int' if does not define. */ 1264 | /* #undef socklen_t */ 1265 | 1266 | /* Define to `int' if doesn't define. */ 1267 | /* #undef uid_t */ 1268 | 1269 | /* Define to the type of an unsigned integer type of width exactly 32 bits if 1270 | such a type exists and the standard includes do not define it. */ 1271 | /* #undef uint32_t */ 1272 | 1273 | /* Define to the type of an unsigned integer type of width exactly 64 bits if 1274 | such a type exists and the standard includes do not define it. */ 1275 | /* #undef uint64_t */ 1276 | 1277 | /* Define to empty if the keyword does not work. */ 1278 | /* #undef volatile */ 1279 | 1280 | 1281 | /* Define the macros needed if on a UnixWare 7.x system. */ 1282 | #if defined(__USLC__) && defined(__SCO_VERSION__) 1283 | #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */ 1284 | #endif 1285 | 1286 | #endif /*Py_PYCONFIG_H*/ 1287 | 1288 | -------------------------------------------------------------------------------- /executable/dist/main/itertools.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/itertools.so -------------------------------------------------------------------------------- /executable/dist/main/lib/python2.7/config/Makefile: -------------------------------------------------------------------------------- 1 | # Generated automatically from Makefile.pre by makesetup. 2 | # Top-level Makefile for Python 3 | # 4 | # As distributed, this file is called Makefile.pre.in; it is processed 5 | # into the real Makefile by running the script ./configure, which 6 | # replaces things like @spam@ with values appropriate for your system. 7 | # This means that if you edit Makefile, your changes get lost the next 8 | # time you run the configure script. Ideally, you can do: 9 | # 10 | # ./configure 11 | # make 12 | # make test 13 | # make install 14 | # 15 | # If you have a previous version of Python installed that you don't 16 | # want to overwrite, you can use "make altinstall" instead of "make 17 | # install". Refer to the "Installing" section in the README file for 18 | # additional details. 19 | # 20 | # See also the section "Build instructions" in the README file. 21 | 22 | # === Variables set by makesetup === 23 | 24 | MODOBJS= Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o 25 | MODLIBS= $(LOCALMODLIBS) $(BASEMODLIBS) 26 | 27 | # === Variables set by configure 28 | VERSION= 2.7 29 | srcdir= . 30 | 31 | abs_srcdir= /home/ilan/minonda/conda-bld/work/Python-2.7.12 32 | abs_builddir= /home/ilan/minonda/conda-bld/work/Python-2.7.12 33 | build= i686-pc-linux-gnu 34 | host= i686-pc-linux-gnu 35 | 36 | CC= gcc -pthread 37 | CXX= g++ -pthread 38 | MAINCC= $(CC) 39 | LINKCC= $(PURIFY) $(MAINCC) 40 | AR= ar 41 | RANLIB= ranlib 42 | SVNVERSION= svnversion $(srcdir) 43 | HGVERSION= hg id -i $(srcdir) 44 | HGTAG= hg id -t $(srcdir) 45 | HGBRANCH= hg id -b $(srcdir) 46 | PGO_PROF_GEN_FLAG=-fprofile-generate 47 | PGO_PROF_USE_FLAG=-fprofile-use -fprofile-correction 48 | LLVM_PROF_MERGER=true 49 | LLVM_PROF_FILE= 50 | LLVM_PROF_ERR=no 51 | 52 | GNULD= yes 53 | 54 | # Shell used by make (some versions default to the login shell, which is bad) 55 | SHELL= /bin/sh 56 | 57 | # Use this to make a link between python$(VERSION) and python in $(BINDIR) 58 | LN= ln 59 | 60 | # Portable install script (configure doesn't always guess right) 61 | INSTALL= /usr/bin/install -c 62 | INSTALL_PROGRAM=${INSTALL} 63 | INSTALL_SCRIPT= ${INSTALL} 64 | INSTALL_DATA= ${INSTALL} -m 644 65 | # Shared libraries must be installed with executable mode on some systems; 66 | # rather than figuring out exactly which, we always give them executable mode. 67 | # Also, making them read-only seems to be a good idea... 68 | INSTALL_SHARED= ${INSTALL} -m 555 69 | 70 | MKDIR_P= /bin/mkdir -p 71 | 72 | MAKESETUP= $(srcdir)/Modules/makesetup 73 | 74 | # Compiler options 75 | OPT= -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 76 | BASECFLAGS= -fno-strict-aliasing 77 | CFLAGS= $(BASECFLAGS) -m32 $(OPT) $(EXTRA_CFLAGS) 78 | # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to 79 | # be able to build extension modules using the directories specified in the 80 | # environment variables 81 | CPPFLAGS= -I. -IInclude -I$(srcdir)/Include -I/home/w568w/anaconda2/include 82 | LDFLAGS= -L/home/w568w/anaconda2/lib -Wl,-rpath=/home/w568w/anaconda2/lib,--no-as-needed 83 | LDLAST= 84 | SGI_ABI= 85 | CCSHARED= -fPIC 86 | LINKFORSHARED= -Xlinker -export-dynamic 87 | ARFLAGS= rc 88 | # Extra C flags added for building the interpreter object files. 89 | CFLAGSFORSHARED=$(CCSHARED) 90 | # C flags used for building the interpreter object files 91 | PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE 92 | 93 | 94 | # Machine-dependent subdirectories 95 | MACHDEP= linux2 96 | 97 | # Multiarch directory (may be empty) 98 | MULTIARCH= 99 | 100 | # Install prefix for architecture-independent files 101 | prefix= /home/w568w/anaconda2 102 | 103 | # Install prefix for architecture-dependent files 104 | exec_prefix= ${prefix} 105 | 106 | # Install prefix for data files 107 | datarootdir= ${prefix}/share 108 | 109 | # Expanded directories 110 | BINDIR= ${exec_prefix}/bin 111 | LIBDIR= ${exec_prefix}/lib 112 | MANDIR= ${datarootdir}/man 113 | INCLUDEDIR= ${prefix}/include 114 | CONFINCLUDEDIR= $(exec_prefix)/include 115 | SCRIPTDIR= $(prefix)/lib 116 | 117 | # Detailed destination directories 118 | BINLIBDEST= $(LIBDIR)/python$(VERSION) 119 | LIBDEST= $(SCRIPTDIR)/python$(VERSION) 120 | INCLUDEPY= $(INCLUDEDIR)/python$(VERSION) 121 | CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(VERSION) 122 | LIBP= $(LIBDIR)/python$(VERSION) 123 | 124 | # Symbols used for using shared libraries 125 | SO= .so 126 | LDSHARED= $(CC) -shared $(LDFLAGS) 127 | BLDSHARED= $(CC) -shared $(LDFLAGS) 128 | LDCXXSHARED= $(CXX) -shared 129 | DESTSHARED= $(BINLIBDEST)/lib-dynload 130 | 131 | # Executable suffix (.exe on Windows and Mac OS X) 132 | EXE= 133 | BUILDEXE= 134 | 135 | # Short name and location for Mac OS X Python framework 136 | UNIVERSALSDK= 137 | PYTHONFRAMEWORK= 138 | PYTHONFRAMEWORKDIR= no-framework 139 | PYTHONFRAMEWORKPREFIX= 140 | PYTHONFRAMEWORKINSTALLDIR= 141 | # Deployment target selected during configure, to be checked 142 | # by distutils. The export statement is needed to ensure that the 143 | # deployment target is active during build. 144 | MACOSX_DEPLOYMENT_TARGET= 145 | #export MACOSX_DEPLOYMENT_TARGET 146 | 147 | # Options to enable prebinding (for fast startup prior to Mac OS X 10.3) 148 | OTHER_LIBTOOL_OPT= 149 | 150 | # Environment to run shared python without installed libraries 151 | RUNSHARED= LD_LIBRARY_PATH=/home/ilan/minonda/conda-bld/work/Python-2.7.12 152 | 153 | # ensurepip options 154 | ENSUREPIP= no 155 | 156 | # Modes for directories, executables and data files created by the 157 | # install process. Default to user-only-writable for all file types. 158 | DIRMODE= 755 159 | EXEMODE= 755 160 | FILEMODE= 644 161 | 162 | # configure script arguments 163 | CONFIG_ARGS= '--enable-shared' '--enable-ipv6' '--enable-unicode=ucs4' '--prefix=/home/w568w/anaconda2' '--with-tcltk-includes=-I/home/w568w/anaconda2/include' '--with-tcltk-libs=-L/home/w568w/anaconda2/lib -ltcl8.5 -ltk8.5' 'CC=gcc' 'CFLAGS= -m32' 'LDFLAGS= -L/home/w568w/anaconda2/lib -Wl,-rpath=/home/w568w/anaconda2/lib,--no-as-needed' 'CPPFLAGS=-I/home/w568w/anaconda2/include' 'PKG_CONFIG_PATH=/home/w568w/anaconda2/lib/pkgconfig' 164 | 165 | 166 | # Subdirectories with code 167 | SRCDIRS= Parser Grammar Objects Python Modules Mac 168 | 169 | # Other subdirectories 170 | SUBDIRSTOO= Include Lib Misc Demo 171 | 172 | # Files and directories to be distributed 173 | CONFIGFILES= configure configure.ac acconfig.h pyconfig.h.in Makefile.pre.in 174 | DISTFILES= README ChangeLog $(CONFIGFILES) 175 | DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy 176 | DIST= $(DISTFILES) $(DISTDIRS) 177 | 178 | 179 | LIBRARY= libpython$(VERSION).a 180 | LDLIBRARY= libpython$(VERSION).so 181 | BLDLIBRARY= -L. -lpython$(VERSION) 182 | DLLLIBRARY= 183 | LDLIBRARYDIR= 184 | INSTSONAME= libpython$(VERSION).so.1.0 185 | 186 | 187 | LIBS= -lpthread -ldl -lutil 188 | LIBM= -lm 189 | LIBC= 190 | SYSLIBS= $(LIBM) $(LIBC) 191 | SHLIBS= $(LIBS) 192 | 193 | THREADOBJ= Python/thread.o 194 | DLINCLDIR= . 195 | DYNLOADFILE= dynload_shlib.o 196 | MACHDEP_OBJS= 197 | LIBOBJDIR= Python/ 198 | LIBOBJS= 199 | UNICODE_OBJS= Objects/unicodeobject.o Objects/unicodectype.o 200 | 201 | PYTHON= python$(EXE) 202 | BUILDPYTHON= python$(BUILDEXE) 203 | 204 | cross_compiling=no 205 | PYTHON_FOR_BUILD=./$(BUILDPYTHON) -E 206 | _PYTHON_HOST_PLATFORM= 207 | HOST_GNU_TYPE= i686-pc-linux-gnu 208 | 209 | # Tcl and Tk config info from --with-tcltk-includes and -libs options 210 | TCLTK_INCLUDES= -I/home/w568w/anaconda2/include 211 | TCLTK_LIBS= -L/home/w568w/anaconda2/lib -ltcl8.5 -ltk8.5 212 | 213 | # The task to run while instrument when building the profile-opt target 214 | # We exclude unittests with -x that take a rediculious amount of time to 215 | # run in the instrumented training build or do not provide much value. 216 | PROFILE_TASK=-m test.regrtest --pgo -x test_asyncore test_gdb test_multiprocessing test_subprocess 217 | 218 | # report files for gcov / lcov coverage report 219 | COVERAGE_INFO= $(abs_builddir)/coverage.info 220 | COVERAGE_REPORT=$(abs_builddir)/lcov-report 221 | COVERAGE_REPORT_OPTIONS=--no-branch-coverage --title "CPython lcov report" 222 | 223 | # === Definitions added by makesetup === 224 | 225 | LOCALMODLIBS= 226 | BASEMODLIBS= 227 | GLHACK=-Dclear=__GLclear 228 | PYTHONPATH=$(COREPYTHONPATH) 229 | COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)$(TKPATH)$(OLDPATH) 230 | OLDPATH=:lib-old 231 | TKPATH=:lib-tk 232 | EXTRAMACHDEPPATH= 233 | MACHDEPPATH=:$(PLATDIR) 234 | TESTPATH= 235 | SITEPATH= 236 | DESTPATH= 237 | MACHDESTLIB=$(BINLIBDEST) 238 | DESTLIB=$(LIBDEST) 239 | 240 | 241 | 242 | ########################################################################## 243 | # Modules 244 | MODULE_OBJS= \ 245 | Modules/config.o \ 246 | Modules/getpath.o \ 247 | Modules/main.o \ 248 | Modules/gcmodule.o 249 | 250 | # Used of signalmodule.o is not available 251 | SIGNAL_OBJS= 252 | 253 | 254 | ########################################################################## 255 | # Grammar 256 | GRAMMAR_H= Include/graminit.h 257 | GRAMMAR_C= Python/graminit.c 258 | GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar 259 | 260 | 261 | LIBFFI_INCLUDEDIR= 262 | 263 | ########################################################################## 264 | # Parser 265 | PGEN= Parser/pgen$(EXE) 266 | 267 | PSRCS= \ 268 | Parser/acceler.c \ 269 | Parser/grammar1.c \ 270 | Parser/listnode.c \ 271 | Parser/node.c \ 272 | Parser/parser.c \ 273 | Parser/parsetok.c \ 274 | Parser/bitset.c \ 275 | Parser/metagrammar.c \ 276 | Parser/firstsets.c \ 277 | Parser/grammar.c \ 278 | Parser/pgen.c 279 | 280 | POBJS= \ 281 | Parser/acceler.o \ 282 | Parser/grammar1.o \ 283 | Parser/listnode.o \ 284 | Parser/node.o \ 285 | Parser/parser.o \ 286 | Parser/parsetok.o \ 287 | Parser/bitset.o \ 288 | Parser/metagrammar.o \ 289 | Parser/firstsets.o \ 290 | Parser/grammar.o \ 291 | Parser/pgen.o 292 | 293 | PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/tokenizer.o 294 | 295 | PGSRCS= \ 296 | Objects/obmalloc.c \ 297 | Python/mysnprintf.c \ 298 | Python/pyctype.c \ 299 | Parser/tokenizer_pgen.c \ 300 | Parser/printgrammar.c \ 301 | Parser/pgenmain.c 302 | 303 | PGOBJS= \ 304 | Objects/obmalloc.o \ 305 | Python/mysnprintf.o \ 306 | Python/pyctype.o \ 307 | Parser/tokenizer_pgen.o \ 308 | Parser/printgrammar.o \ 309 | Parser/pgenmain.o 310 | 311 | PARSER_HEADERS= \ 312 | Parser/parser.h \ 313 | Parser/tokenizer.h 314 | 315 | PGENSRCS= $(PSRCS) $(PGSRCS) 316 | PGENOBJS= $(POBJS) $(PGOBJS) 317 | 318 | ########################################################################## 319 | # AST 320 | AST_H_DIR= Include 321 | AST_H= $(AST_H_DIR)/Python-ast.h 322 | AST_C_DIR= Python 323 | AST_C= $(AST_C_DIR)/Python-ast.c 324 | AST_ASDL= $(srcdir)/Parser/Python.asdl 325 | 326 | ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py 327 | # XXX Note that a build now requires Python exist before the build starts 328 | ASDLGEN= $(srcdir)/Parser/asdl_c.py 329 | 330 | ########################################################################## 331 | # Python 332 | 333 | OPCODETARGETS_H= \ 334 | $(srcdir)/Python/opcode_targets.h 335 | 336 | OPCODETARGETGEN= \ 337 | $(srcdir)/Python/makeopcodetargets.py 338 | 339 | OPCODETARGETGEN_FILES= \ 340 | $(OPCODETARGETGEN) $(srcdir)/Lib/opcode.py 341 | 342 | PYTHON_OBJS= \ 343 | Python/_warnings.o \ 344 | Python/Python-ast.o \ 345 | Python/asdl.o \ 346 | Python/ast.o \ 347 | Python/bltinmodule.o \ 348 | Python/ceval.o \ 349 | Python/compile.o \ 350 | Python/codecs.o \ 351 | Python/errors.o \ 352 | Python/frozen.o \ 353 | Python/frozenmain.o \ 354 | Python/future.o \ 355 | Python/getargs.o \ 356 | Python/getcompiler.o \ 357 | Python/getcopyright.o \ 358 | Python/getplatform.o \ 359 | Python/getversion.o \ 360 | Python/graminit.o \ 361 | Python/import.o \ 362 | Python/importdl.o \ 363 | Python/marshal.o \ 364 | Python/modsupport.o \ 365 | Python/mystrtoul.o \ 366 | Python/mysnprintf.o \ 367 | Python/peephole.o \ 368 | Python/pyarena.o \ 369 | Python/pyctype.o \ 370 | Python/pyfpe.o \ 371 | Python/pymath.o \ 372 | Python/pystate.o \ 373 | Python/pythonrun.o \ 374 | Python/random.o \ 375 | Python/structmember.o \ 376 | Python/symtable.o \ 377 | Python/sysmodule.o \ 378 | Python/traceback.o \ 379 | Python/getopt.o \ 380 | Python/pystrcmp.o \ 381 | Python/pystrtod.o \ 382 | Python/dtoa.o \ 383 | Python/formatter_unicode.o \ 384 | Python/formatter_string.o \ 385 | Python/$(DYNLOADFILE) \ 386 | $(LIBOBJS) \ 387 | $(MACHDEP_OBJS) \ 388 | $(THREADOBJ) 389 | 390 | 391 | ########################################################################## 392 | # Objects 393 | OBJECT_OBJS= \ 394 | Objects/abstract.o \ 395 | Objects/boolobject.o \ 396 | Objects/bufferobject.o \ 397 | Objects/bytes_methods.o \ 398 | Objects/bytearrayobject.o \ 399 | Objects/capsule.o \ 400 | Objects/cellobject.o \ 401 | Objects/classobject.o \ 402 | Objects/cobject.o \ 403 | Objects/codeobject.o \ 404 | Objects/complexobject.o \ 405 | Objects/descrobject.o \ 406 | Objects/enumobject.o \ 407 | Objects/exceptions.o \ 408 | Objects/genobject.o \ 409 | Objects/fileobject.o \ 410 | Objects/floatobject.o \ 411 | Objects/frameobject.o \ 412 | Objects/funcobject.o \ 413 | Objects/intobject.o \ 414 | Objects/iterobject.o \ 415 | Objects/listobject.o \ 416 | Objects/longobject.o \ 417 | Objects/dictobject.o \ 418 | Objects/memoryobject.o \ 419 | Objects/methodobject.o \ 420 | Objects/moduleobject.o \ 421 | Objects/object.o \ 422 | Objects/obmalloc.o \ 423 | Objects/rangeobject.o \ 424 | Objects/setobject.o \ 425 | Objects/sliceobject.o \ 426 | Objects/stringobject.o \ 427 | Objects/structseq.o \ 428 | Objects/tupleobject.o \ 429 | Objects/typeobject.o \ 430 | Objects/weakrefobject.o \ 431 | $(UNICODE_OBJS) 432 | 433 | 434 | ########################################################################## 435 | # objects that get linked into the Python library 436 | LIBRARY_OBJS= \ 437 | Modules/getbuildinfo.o \ 438 | $(PARSER_OBJS) \ 439 | $(OBJECT_OBJS) \ 440 | $(PYTHON_OBJS) \ 441 | $(MODULE_OBJS) \ 442 | $(SIGNAL_OBJS) \ 443 | $(MODOBJS) 444 | 445 | ######################################################################### 446 | # Rules 447 | 448 | # Default target 449 | all: build_all 450 | build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks 451 | 452 | # Compile a binary with profile guided optimization. 453 | profile-opt: 454 | @if [ $(LLVM_PROF_ERR) = yes ]; then \ 455 | echo "Error: Cannot perform PGO build because llvm-profdata was not found in PATH" ;\ 456 | echo "Please add it to PATH and run ./configure again" ;\ 457 | exit 1;\ 458 | fi 459 | @echo "Building with support for profile generation:" 460 | $(MAKE) clean 461 | $(MAKE) profile-removal 462 | $(MAKE) build_all_generate_profile 463 | $(MAKE) profile-removal 464 | @echo "Running code to generate profile data (this can take a while):" 465 | $(MAKE) run_profile_task 466 | $(MAKE) build_all_merge_profile 467 | @echo "Rebuilding with profile guided optimizations:" 468 | $(MAKE) clean 469 | $(MAKE) build_all_use_profile 470 | $(MAKE) profile-removal 471 | 472 | build_all_generate_profile: 473 | $(MAKE) all CFLAGS="$(CFLAGS) $(PGO_PROF_GEN_FLAG) " LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG) " LIBS="$(LIBS)" 474 | 475 | run_profile_task: 476 | : # FIXME: can't run for a cross build 477 | $(LLVM_PROF_FILE) ./$(BUILDPYTHON) $(PROFILE_TASK) || true 478 | 479 | build_all_merge_profile: 480 | $(LLVM_PROF_MERGER) 481 | 482 | build_all_use_profile: 483 | $(MAKE) all CFLAGS="$(CFLAGS) $(PGO_PROF_USE_FLAG) " LDFLAGS="$(LDFLAGS) " 484 | 485 | # Compile and run with gcov 486 | .PHONY=coverage coverage-lcov coverage-report 487 | coverage: 488 | @echo "Building with support for coverage checking:" 489 | $(MAKE) clean profile-removal 490 | $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov" 491 | 492 | coverage-lcov: 493 | @echo "Creating Coverage HTML report with LCOV:" 494 | @rm -f $(COVERAGE_INFO) 495 | @rm -rf $(COVERAGE_REPORT) 496 | @lcov --capture --directory $(abs_builddir) \ 497 | --base-directory $(realpath $(abs_builddir)) \ 498 | --path $(realpath $(abs_srcdir)) \ 499 | --output-file $(COVERAGE_INFO) 500 | : # remove 3rd party modules and system headers 501 | @lcov --remove $(COVERAGE_INFO) \ 502 | '*/Modules/_ctypes/libffi*/*' \ 503 | '*/Modules/expat/*' \ 504 | '*/Modules/zlib/*' \ 505 | '*/Include/*' \ 506 | '/usr/include/*' \ 507 | '/usr/local/include/*' \ 508 | --output-file $(COVERAGE_INFO) 509 | @genhtml $(COVERAGE_INFO) --output-directory $(COVERAGE_REPORT) \ 510 | $(COVERAGE_REPORT_OPTIONS) 511 | @echo 512 | @echo "lcov report at $(COVERAGE_REPORT)/index.html" 513 | @echo 514 | 515 | coverage-report: 516 | : # force rebuilding of parser 517 | @touch $(GRAMMAR_INPUT) 518 | : # build with coverage info 519 | $(MAKE) coverage 520 | : # run tests, ignore failures 521 | $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) || true 522 | : # build lcov report 523 | $(MAKE) coverage-lcov 524 | 525 | 526 | # Build the interpreter 527 | $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) 528 | $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ 529 | Modules/python.o \ 530 | $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 531 | 532 | platform: $(BUILDPYTHON) pybuilddir.txt 533 | $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform 534 | 535 | # Create build directory and generate the sysconfig build-time data there. 536 | # pybuilddir.txt contains the name of the build dir and is used for 537 | # sys.path fixup -- see Modules/getpath.c. 538 | # Since this step runs before shared modules are built, try to avoid bootstrap 539 | # problems by creating a dummy pybuilddir.txt just to allow interpreter 540 | # initialization to succeed. It will be overwritten by generate-posix-vars 541 | # or removed in case of failure. 542 | pybuilddir.txt: $(BUILDPYTHON) 543 | @echo "none" > ./pybuilddir.txt 544 | $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ;\ 545 | if test $$? -ne 0 ; then \ 546 | echo "generate-posix-vars failed" ; \ 547 | rm -f ./pybuilddir.txt ; \ 548 | exit 1 ; \ 549 | fi 550 | 551 | # This is shared by the math and cmath modules 552 | Modules/_math.o: Modules/_math.c Modules/_math.h 553 | $(CC) -c $(CCSHARED) $(PY_CFLAGS) -o $@ $< 554 | 555 | # Build the shared modules 556 | # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for 557 | # -s, --silent or --quiet is always the first char. 558 | # Under BSD make, MAKEFLAGS might be " -s -v x=y". 559 | sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o 560 | @case "$$MAKEFLAGS" in \ 561 | *\ -s*|s*) quiet="-q";; \ 562 | *) quiet="";; \ 563 | esac; \ 564 | $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ 565 | _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \ 566 | $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build 567 | 568 | # Build static library 569 | # avoid long command lines, same as LIBRARY_OBJS 570 | $(LIBRARY): $(LIBRARY_OBJS) 571 | -rm -f $@ 572 | $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o 573 | $(AR) $(ARFLAGS) $@ $(PARSER_OBJS) 574 | $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS) 575 | $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS) 576 | $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS) 577 | $(AR) $(ARFLAGS) $@ $(MODOBJS) 578 | $(RANLIB) $@ 579 | 580 | libpython$(VERSION).so: $(LIBRARY_OBJS) 581 | if test $(INSTSONAME) != $(LDLIBRARY); then \ 582 | $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ 583 | $(LN) -f $(INSTSONAME) $@; \ 584 | else \ 585 | $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ 586 | fi 587 | 588 | libpython$(VERSION).dylib: $(LIBRARY_OBJS) 589 | $(CC) -dynamiclib -Wl,-single_module $(LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(VERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ 590 | 591 | 592 | libpython$(VERSION).sl: $(LIBRARY_OBJS) 593 | $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST) 594 | 595 | # Copy up the gdb python hooks into a position where they can be automatically 596 | # loaded by gdb during Lib/test/test_gdb.py 597 | # 598 | # Distributors are likely to want to install this somewhere else e.g. relative 599 | # to the stripped DWARF data for the shared library. 600 | gdbhooks: $(BUILDPYTHON)-gdb.py 601 | 602 | SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py 603 | $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS) 604 | $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py 605 | 606 | # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary 607 | # minimal framework (not including the Lib directory and such) in the current 608 | # directory. 609 | RESSRCDIR=Mac/Resources/framework 610 | $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \ 611 | $(LIBRARY) \ 612 | $(RESSRCDIR)/Info.plist 613 | $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION) 614 | $(CC) -o $(LDLIBRARY) $(LDFLAGS) -dynamiclib \ 615 | -all_load $(LIBRARY) -Wl,-single_module \ 616 | -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \ 617 | -compatibility_version $(VERSION) \ 618 | -current_version $(VERSION); 619 | $(INSTALL) -d -m $(DIRMODE) \ 620 | $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj 621 | $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \ 622 | $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist 623 | $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current 624 | $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK) 625 | $(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers 626 | $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources 627 | 628 | # This rule builds the Cygwin Python DLL and import library if configured 629 | # for a shared core library; otherwise, this rule is a noop. 630 | $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS) 631 | if test -n "$(DLLLIBRARY)"; then \ 632 | $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \ 633 | $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \ 634 | else true; \ 635 | fi 636 | 637 | 638 | oldsharedmods: $(SHAREDMODS) 639 | 640 | 641 | Makefile Modules/config.c: Makefile.pre \ 642 | $(srcdir)/Modules/config.c.in \ 643 | $(MAKESETUP) \ 644 | Modules/Setup.config \ 645 | Modules/Setup \ 646 | Modules/Setup.local 647 | $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \ 648 | -s Modules \ 649 | Modules/Setup.config \ 650 | Modules/Setup.local \ 651 | Modules/Setup 652 | @mv config.c Modules 653 | @echo "The Makefile was updated, you may need to re-run make." 654 | 655 | 656 | Modules/Setup: $(srcdir)/Modules/Setup.dist 657 | @if test -f Modules/Setup; then \ 658 | echo "-----------------------------------------------"; \ 659 | echo "Modules/Setup.dist is newer than Modules/Setup;"; \ 660 | echo "check to make sure you have all the updates you"; \ 661 | echo "need in your Modules/Setup file."; \ 662 | echo "Usually, copying Modules/Setup.dist to Modules/Setup will work."; \ 663 | echo "-----------------------------------------------"; \ 664 | fi 665 | 666 | ############################################################################ 667 | # Special rules for object files 668 | 669 | Modules/getbuildinfo.o: $(PARSER_OBJS) \ 670 | $(OBJECT_OBJS) \ 671 | $(PYTHON_OBJS) \ 672 | $(MODULE_OBJS) \ 673 | $(SIGNAL_OBJS) \ 674 | $(MODOBJS) \ 675 | $(srcdir)/Modules/getbuildinfo.c 676 | $(CC) -c $(PY_CFLAGS) \ 677 | -DSVNVERSION="\"`LC_ALL=C $(SVNVERSION)`\"" \ 678 | -DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \ 679 | -DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \ 680 | -DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \ 681 | -o $@ $(srcdir)/Modules/getbuildinfo.c 682 | 683 | Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile 684 | $(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \ 685 | -DPREFIX='"$(prefix)"' \ 686 | -DEXEC_PREFIX='"$(exec_prefix)"' \ 687 | -DVERSION='"$(VERSION)"' \ 688 | -DVPATH='"$(VPATH)"' \ 689 | -o $@ $(srcdir)/Modules/getpath.c 690 | 691 | Modules/python.o: $(srcdir)/Modules/python.c 692 | $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c 693 | 694 | Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmodule.h 695 | 696 | Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule.h 697 | 698 | Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h 699 | 700 | $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN) 701 | @$(MKDIR_P) Include 702 | # Avoid copying the file onto itself for an in-tree build 703 | if test "$(cross_compiling)" != "yes"; then \ 704 | $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \ 705 | else \ 706 | cp $(srcdir)/Include/graminit.h $(GRAMMAR_H).tmp; \ 707 | mv $(GRAMMAR_H).tmp $(GRAMMAR_H); \ 708 | fi 709 | $(GRAMMAR_C): $(GRAMMAR_H) 710 | if test "$(cross_compiling)" != "yes"; then \ 711 | touch $(GRAMMAR_C); \ 712 | else \ 713 | cp $(srcdir)/Python/graminit.c $(GRAMMAR_C).tmp; \ 714 | mv $(GRAMMAR_C).tmp $(GRAMMAR_C); \ 715 | fi 716 | 717 | $(PGEN): $(PGENOBJS) 718 | $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) 719 | 720 | Parser/grammar.o: $(srcdir)/Parser/grammar.c \ 721 | $(srcdir)/Include/token.h \ 722 | $(srcdir)/Include/grammar.h 723 | Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c 724 | 725 | Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c 726 | 727 | Parser/pgenmain.o: $(srcdir)/Include/parsetok.h 728 | 729 | $(AST_H): $(AST_ASDL) $(ASDLGEN_FILES) 730 | $(MKDIR_P) $(AST_H_DIR) 731 | $(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL) 732 | 733 | $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES) 734 | $(MKDIR_P) $(AST_C_DIR) 735 | $(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL) 736 | 737 | Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) 738 | 739 | Python/getplatform.o: $(srcdir)/Python/getplatform.c 740 | $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c 741 | 742 | Python/importdl.o: $(srcdir)/Python/importdl.c 743 | $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c 744 | 745 | Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \ 746 | $(srcdir)/Objects/unicodetype_db.h 747 | 748 | STRINGLIB_HEADERS= \ 749 | $(srcdir)/Include/bytes_methods.h \ 750 | $(srcdir)/Objects/stringlib/count.h \ 751 | $(srcdir)/Objects/stringlib/ctype.h \ 752 | $(srcdir)/Objects/stringlib/fastsearch.h \ 753 | $(srcdir)/Objects/stringlib/find.h \ 754 | $(srcdir)/Objects/stringlib/formatter.h \ 755 | $(srcdir)/Objects/stringlib/partition.h \ 756 | $(srcdir)/Objects/stringlib/split.h \ 757 | $(srcdir)/Objects/stringlib/stringdefs.h \ 758 | $(srcdir)/Objects/stringlib/string_format.h \ 759 | $(srcdir)/Objects/stringlib/transmogrify.h \ 760 | $(srcdir)/Objects/stringlib/unicodedefs.h \ 761 | $(srcdir)/Objects/stringlib/localeutil.h 762 | 763 | Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \ 764 | $(STRINGLIB_HEADERS) 765 | 766 | Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c \ 767 | $(STRINGLIB_HEADERS) 768 | 769 | Objects/stringobject.o: $(srcdir)/Objects/stringobject.c \ 770 | $(STRINGLIB_HEADERS) 771 | 772 | $(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES) 773 | $(OPCODETARGETGEN) $(OPCODETARGETS_H) 774 | 775 | Python/ceval.o: $(OPCODETARGETS_H) 776 | 777 | Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \ 778 | $(STRINGLIB_HEADERS) 779 | 780 | Python/formatter_string.o: $(srcdir)/Python/formatter_string.c \ 781 | $(STRINGLIB_HEADERS) 782 | 783 | ############################################################################ 784 | # Header files 785 | 786 | PYTHON_HEADERS= \ 787 | Include/Python-ast.h \ 788 | Include/Python.h \ 789 | Include/abstract.h \ 790 | Include/asdl.h \ 791 | Include/ast.h \ 792 | Include/bitset.h \ 793 | Include/boolobject.h \ 794 | Include/bytearrayobject.h \ 795 | Include/bytes_methods.h \ 796 | Include/bytesobject.h \ 797 | Include/bufferobject.h \ 798 | Include/cellobject.h \ 799 | Include/ceval.h \ 800 | Include/classobject.h \ 801 | Include/cobject.h \ 802 | Include/code.h \ 803 | Include/codecs.h \ 804 | Include/compile.h \ 805 | Include/complexobject.h \ 806 | Include/descrobject.h \ 807 | Include/dictobject.h \ 808 | Include/dtoa.h \ 809 | Include/enumobject.h \ 810 | Include/errcode.h \ 811 | Include/eval.h \ 812 | Include/fileobject.h \ 813 | Include/floatobject.h \ 814 | Include/frameobject.h \ 815 | Include/funcobject.h \ 816 | Include/genobject.h \ 817 | Include/import.h \ 818 | Include/intobject.h \ 819 | Include/intrcheck.h \ 820 | Include/iterobject.h \ 821 | Include/listobject.h \ 822 | Include/longintrepr.h \ 823 | Include/longobject.h \ 824 | Include/marshal.h \ 825 | Include/memoryobject.h \ 826 | Include/metagrammar.h \ 827 | Include/methodobject.h \ 828 | Include/modsupport.h \ 829 | Include/moduleobject.h \ 830 | Include/node.h \ 831 | Include/object.h \ 832 | Include/objimpl.h \ 833 | Include/opcode.h \ 834 | Include/osdefs.h \ 835 | Include/parsetok.h \ 836 | Include/patchlevel.h \ 837 | Include/pgen.h \ 838 | Include/pgenheaders.h \ 839 | Include/pyarena.h \ 840 | Include/pycapsule.h \ 841 | Include/pyctype.h \ 842 | Include/pydebug.h \ 843 | Include/pyerrors.h \ 844 | Include/pyfpe.h \ 845 | Include/pymath.h \ 846 | Include/pygetopt.h \ 847 | Include/pymem.h \ 848 | Include/pyport.h \ 849 | Include/pystate.h \ 850 | Include/pystrcmp.h \ 851 | Include/pystrtod.h \ 852 | Include/pythonrun.h \ 853 | Include/pythread.h \ 854 | Include/rangeobject.h \ 855 | Include/setobject.h \ 856 | Include/sliceobject.h \ 857 | Include/stringobject.h \ 858 | Include/structmember.h \ 859 | Include/structseq.h \ 860 | Include/symtable.h \ 861 | Include/sysmodule.h \ 862 | Include/traceback.h \ 863 | Include/tupleobject.h \ 864 | Include/ucnhash.h \ 865 | Include/unicodeobject.h \ 866 | Include/warnings.h \ 867 | Include/weakrefobject.h \ 868 | pyconfig.h \ 869 | $(PARSER_HEADERS) \ 870 | $(AST_H) 871 | 872 | $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS) 873 | 874 | 875 | ###################################################################### 876 | 877 | # Test the interpreter (twice, once without .pyc files, once with) 878 | # In the past, we've had problems where bugs in the marshalling or 879 | # elsewhere caused bytecode read from .pyc files to behave differently 880 | # than bytecode generated directly from a .py source file. Sometimes 881 | # the bytecode read from a .pyc file had the bug, sometimes the directly 882 | # generated bytecode. This is sometimes a very shy bug needing a lot of 883 | # sample data. 884 | 885 | TESTOPTS= -l $(EXTRATESTOPTS) 886 | TESTPROG= $(srcdir)/Lib/test/regrtest.py 887 | TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS) 888 | test: all platform 889 | -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f 890 | -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) 891 | $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) 892 | 893 | testall: all platform 894 | -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f 895 | $(TESTPYTHON) $(srcdir)/Lib/compileall.py 896 | -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f 897 | -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) 898 | $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) 899 | 900 | # Run the unitests for both architectures in a Universal build on OSX 901 | # Must be run on an Intel box. 902 | testuniversal: all platform 903 | if [ `arch` != 'i386' ];then \ 904 | echo "This can only be used on OSX/i386" ;\ 905 | exit 1 ;\ 906 | fi 907 | -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f 908 | -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) 909 | $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) 910 | $(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) -uall $(TESTOPTS) 911 | 912 | 913 | # Like testall, but with a single pass only 914 | # run an optional script to include some information about the build environment 915 | buildbottest: all platform 916 | -@if which pybuildbot.identify >/dev/null 2>&1; then \ 917 | pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \ 918 | fi 919 | $(TESTPYTHON) -R $(TESTPROG) -uall -rwW $(TESTOPTS) 920 | 921 | QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \ 922 | test_multibytecodec test_urllib2_localnet test_itertools \ 923 | test_multiprocessing test_mailbox test_socket test_poll \ 924 | test_select test_zipfile 925 | quicktest: all platform 926 | -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f 927 | -$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS) 928 | $(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS) 929 | 930 | MEMTESTOPTS= $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \ 931 | test_longexp 932 | memtest: all platform 933 | -rm -f $(srcdir)/Lib/test/*.py[co] 934 | -$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS) 935 | $(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS) 936 | 937 | # Install everything 938 | install: commoninstall bininstall maninstall 939 | if test "x$(ENSUREPIP)" != "xno" ; then \ 940 | case $(ENSUREPIP) in \ 941 | upgrade) ensurepip="--upgrade" ;; \ 942 | install|*) ensurepip="" ;; \ 943 | esac; \ 944 | $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \ 945 | $$ensurepip --root=$(DESTDIR)/ ; \ 946 | fi 947 | 948 | # Install almost everything without disturbing previous versions 949 | altinstall: commoninstall 950 | if test "x$(ENSUREPIP)" != "xno" ; then \ 951 | case $(ENSUREPIP) in \ 952 | upgrade) ensurepip="--altinstall --upgrade --no-default-pip" ;; \ 953 | install|*) ensurepip="--altinstall --no-default-pip" ;; \ 954 | esac; \ 955 | $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \ 956 | $$ensurepip --root=$(DESTDIR)/ ; \ 957 | fi 958 | 959 | commoninstall: \ 960 | altbininstall libinstall inclinstall libainstall \ 961 | sharedinstall oldsharedinstall altmaninstall \ 962 | 963 | 964 | # Install shared libraries enabled by Setup 965 | DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED) 966 | 967 | oldsharedinstall: $(DESTSHARED) $(SHAREDMODS) 968 | @for i in X $(SHAREDMODS); do \ 969 | if test $$i != X; then \ 970 | echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \ 971 | $(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \ 972 | fi; \ 973 | done 974 | 975 | $(DESTSHARED): 976 | @for i in $(DESTDIRS); \ 977 | do \ 978 | if test ! -d $(DESTDIR)$$i; then \ 979 | echo "Creating directory $$i"; \ 980 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 981 | else true; \ 982 | fi; \ 983 | done 984 | 985 | 986 | # Install the interpreter by creating a symlink chain: 987 | # $(PYTHON) -> python2 -> python$(VERSION)) 988 | # Also create equivalent chains for other installed files 989 | bininstall: altbininstall 990 | if test ! -d $(DESTDIR)$(LIBPC); then \ 991 | echo "Creating directory $(LIBPC)"; \ 992 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \ 993 | fi 994 | -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \ 995 | then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \ 996 | else true; \ 997 | fi 998 | (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON)) 999 | -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE) 1000 | (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE)) 1001 | -rm -f $(DESTDIR)$(BINDIR)/python2-config 1002 | (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config) 1003 | -rm -f $(DESTDIR)$(BINDIR)/python-config 1004 | (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config) 1005 | -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC) 1006 | -rm -f $(DESTDIR)$(LIBPC)/python2.pc 1007 | (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc) 1008 | -rm -f $(DESTDIR)$(LIBPC)/python.pc 1009 | (cd $(DESTDIR)$(LIBPC); $(LN) -s python2.pc python.pc) 1010 | 1011 | # Install the interpreter with $(VERSION) affixed 1012 | # This goes into $(exec_prefix) 1013 | altbininstall: $(BUILDPYTHON) 1014 | @for i in $(BINDIR) $(LIBDIR); \ 1015 | do \ 1016 | if test ! -d $(DESTDIR)$$i; then \ 1017 | echo "Creating directory $$i"; \ 1018 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1019 | else true; \ 1020 | fi; \ 1021 | done 1022 | $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE) 1023 | if test -f $(LDLIBRARY); then \ 1024 | if test -n "$(DLLLIBRARY)" ; then \ 1025 | $(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \ 1026 | else \ 1027 | $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \ 1028 | if test $(LDLIBRARY) != $(INSTSONAME); then \ 1029 | (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \ 1030 | fi \ 1031 | fi; \ 1032 | else true; \ 1033 | fi 1034 | 1035 | # Install the versioned manual page 1036 | altmaninstall: 1037 | @for i in $(MANDIR) $(MANDIR)/man1; \ 1038 | do \ 1039 | if test ! -d $(DESTDIR)$$i; then \ 1040 | echo "Creating directory $$i"; \ 1041 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1042 | else true; \ 1043 | fi; \ 1044 | done 1045 | $(INSTALL_DATA) $(srcdir)/Misc/python.man \ 1046 | $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1 1047 | 1048 | # Install the unversioned manual pages 1049 | maninstall: altmaninstall 1050 | -rm -f $(DESTDIR)$(MANDIR)/man1/python2.1 1051 | (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python2.1) 1052 | -rm -f $(DESTDIR)$(MANDIR)/man1/python.1 1053 | (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python2.1 python.1) 1054 | 1055 | # Install the library 1056 | PLATDIR= plat-linux2 1057 | EXTRAPLATDIR= 1058 | EXTRAMACHDEPPATH= 1059 | MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR) 1060 | XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax 1061 | PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \ 1062 | plat-mac/lib-scriptpackages/_builtinSuites \ 1063 | plat-mac/lib-scriptpackages/CodeWarrior \ 1064 | plat-mac/lib-scriptpackages/Explorer \ 1065 | plat-mac/lib-scriptpackages/Finder \ 1066 | plat-mac/lib-scriptpackages/Netscape \ 1067 | plat-mac/lib-scriptpackages/StdSuites \ 1068 | plat-mac/lib-scriptpackages/SystemEvents \ 1069 | plat-mac/lib-scriptpackages/Terminal 1070 | PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages 1071 | LIBSUBDIRS= lib-tk lib-tk/test lib-tk/test/test_tkinter \ 1072 | lib-tk/test/test_ttk site-packages test test/audiodata test/capath \ 1073 | test/data test/cjkencodings test/decimaltestdata test/xmltestdata \ 1074 | test/imghdrdata \ 1075 | test/subprocessdata \ 1076 | test/tracedmodules \ 1077 | encodings compiler hotshot \ 1078 | email email/mime email/test email/test/data \ 1079 | ensurepip ensurepip/_bundled \ 1080 | json json/tests \ 1081 | sqlite3 sqlite3/test \ 1082 | logging bsddb bsddb/test csv importlib wsgiref \ 1083 | lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \ 1084 | lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \ 1085 | ctypes ctypes/test ctypes/macholib \ 1086 | idlelib idlelib/Icons idlelib/idle_test \ 1087 | distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \ 1088 | multiprocessing multiprocessing/dummy \ 1089 | unittest unittest/test \ 1090 | lib-old \ 1091 | curses pydoc_data $(MACHDEPS) 1092 | libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c 1093 | @for i in $(SCRIPTDIR) $(LIBDEST); \ 1094 | do \ 1095 | if test ! -d $(DESTDIR)$$i; then \ 1096 | echo "Creating directory $$i"; \ 1097 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1098 | else true; \ 1099 | fi; \ 1100 | done 1101 | @for d in $(LIBSUBDIRS); \ 1102 | do \ 1103 | a=$(srcdir)/Lib/$$d; \ 1104 | if test ! -d $$a; then continue; else true; fi; \ 1105 | b=$(LIBDEST)/$$d; \ 1106 | if test ! -d $(DESTDIR)$$b; then \ 1107 | echo "Creating directory $$b"; \ 1108 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \ 1109 | else true; \ 1110 | fi; \ 1111 | done 1112 | @for i in $(srcdir)/Lib/*.py `cat pybuilddir.txt`/_sysconfigdata.py $(srcdir)/Lib/*.doc $(srcdir)/Lib/*.egg-info ; \ 1113 | do \ 1114 | if test -x $$i; then \ 1115 | $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \ 1116 | echo $(INSTALL_SCRIPT) $$i $(LIBDEST); \ 1117 | else \ 1118 | $(INSTALL_DATA) $$i $(DESTDIR)$(LIBDEST); \ 1119 | echo $(INSTALL_DATA) $$i $(LIBDEST); \ 1120 | fi; \ 1121 | done 1122 | @for d in $(LIBSUBDIRS); \ 1123 | do \ 1124 | a=$(srcdir)/Lib/$$d; \ 1125 | if test ! -d $$a; then continue; else true; fi; \ 1126 | if test `ls $$a | wc -l` -lt 1; then continue; fi; \ 1127 | b=$(LIBDEST)/$$d; \ 1128 | for i in $$a/*; \ 1129 | do \ 1130 | case $$i in \ 1131 | *CVS) ;; \ 1132 | *.py[co]) ;; \ 1133 | *.orig) ;; \ 1134 | *~) ;; \ 1135 | *) \ 1136 | if test -d $$i; then continue; fi; \ 1137 | if test -x $$i; then \ 1138 | echo $(INSTALL_SCRIPT) $$i $$b; \ 1139 | $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \ 1140 | else \ 1141 | echo $(INSTALL_DATA) $$i $$b; \ 1142 | $(INSTALL_DATA) $$i $(DESTDIR)$$b; \ 1143 | fi;; \ 1144 | esac; \ 1145 | done; \ 1146 | done 1147 | $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt 1148 | if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \ 1149 | $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ 1150 | $(DESTDIR)$(LIBDEST)/distutils/tests ; \ 1151 | fi 1152 | PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1153 | $(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ 1154 | -d $(LIBDEST) -f \ 1155 | -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 1156 | $(DESTDIR)$(LIBDEST) 1157 | PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1158 | $(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ 1159 | -d $(LIBDEST) -f \ 1160 | -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 1161 | $(DESTDIR)$(LIBDEST) 1162 | -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1163 | $(PYTHON_FOR_BUILD) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \ 1164 | -d $(LIBDEST)/site-packages -f \ 1165 | -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 1166 | -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1167 | $(PYTHON_FOR_BUILD) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ 1168 | -d $(LIBDEST)/site-packages -f \ 1169 | -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 1170 | -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1171 | $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt 1172 | -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 1173 | $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt 1174 | 1175 | # Create the PLATDIR source directory, if one wasn't distributed.. 1176 | $(srcdir)/Lib/$(PLATDIR): 1177 | mkdir $(srcdir)/Lib/$(PLATDIR) 1178 | cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen 1179 | export PATH; PATH="`pwd`:$$PATH"; \ 1180 | export PYTHONPATH; PYTHONPATH="$(srcdir)/Lib:$(abs_builddir)/`cat pybuilddir.txt`"; \ 1181 | export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \ 1182 | export EXE; EXE="$(BUILDEXE)"; \ 1183 | if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \ 1184 | export PYTHON_FOR_BUILD; \ 1185 | if [ "$(build)" = "$(host)" ]; then \ 1186 | PYTHON_FOR_BUILD="$(BUILDPYTHON)"; \ 1187 | else \ 1188 | PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \ 1189 | fi; \ 1190 | cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen 1191 | 1192 | python-config: $(srcdir)/Misc/python-config.in 1193 | # Substitution happens here, as the completely-expanded BINDIR 1194 | # is not available in configure 1195 | sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config 1196 | 1197 | # Install the include files 1198 | INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY) 1199 | inclinstall: 1200 | @for i in $(INCLDIRSTOMAKE); \ 1201 | do \ 1202 | if test ! -d $(DESTDIR)$$i; then \ 1203 | echo "Creating directory $$i"; \ 1204 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1205 | else true; \ 1206 | fi; \ 1207 | done 1208 | @for i in $(srcdir)/Include/*.h; \ 1209 | do \ 1210 | echo $(INSTALL_DATA) $$i $(INCLUDEPY); \ 1211 | $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \ 1212 | done 1213 | $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h 1214 | 1215 | # Install the library and miscellaneous stuff needed for extending/embedding 1216 | # This goes into $(exec_prefix) 1217 | LIBPL= $(LIBP)/config 1218 | 1219 | # pkgconfig directory 1220 | LIBPC= $(LIBDIR)/pkgconfig 1221 | 1222 | libainstall: all python-config 1223 | @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \ 1224 | do \ 1225 | if test ! -d $(DESTDIR)$$i; then \ 1226 | echo "Creating directory $$i"; \ 1227 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1228 | else true; \ 1229 | fi; \ 1230 | done 1231 | @if test -d $(LIBRARY); then :; else \ 1232 | if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \ 1233 | if test "$(SO)" = .dll; then \ 1234 | $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \ 1235 | else \ 1236 | $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \ 1237 | $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \ 1238 | fi; \ 1239 | else \ 1240 | echo Skip install of $(LIBRARY) - use make frameworkinstall; \ 1241 | fi; \ 1242 | fi 1243 | $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c 1244 | $(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o 1245 | $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in 1246 | $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile 1247 | $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup 1248 | $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local 1249 | $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config 1250 | $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc 1251 | $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup 1252 | $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh 1253 | $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config 1254 | rm python-config 1255 | @if [ -s Modules/python.exp -a \ 1256 | "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \ 1257 | echo; echo "Installing support files for building shared extension modules on AIX:"; \ 1258 | $(INSTALL_DATA) Modules/python.exp \ 1259 | $(DESTDIR)$(LIBPL)/python.exp; \ 1260 | echo; echo "$(LIBPL)/python.exp"; \ 1261 | $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \ 1262 | $(DESTDIR)$(LIBPL)/makexp_aix; \ 1263 | echo "$(LIBPL)/makexp_aix"; \ 1264 | $(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix \ 1265 | $(DESTDIR)$(LIBPL)/ld_so_aix; \ 1266 | echo "$(LIBPL)/ld_so_aix"; \ 1267 | echo; echo "See Misc/AIX-NOTES for details."; \ 1268 | else true; \ 1269 | fi 1270 | @case "$(MACHDEP)" in beos*) \ 1271 | echo; echo "Installing support files for building shared extension modules on BeOS:"; \ 1272 | $(INSTALL_DATA) Misc/BeOS-NOTES $(DESTDIR)$(LIBPL)/README; \ 1273 | echo; echo "$(LIBPL)/README"; \ 1274 | $(INSTALL_SCRIPT) Modules/ar_beos $(DESTDIR)$(LIBPL)/ar_beos; \ 1275 | echo "$(LIBPL)/ar_beos"; \ 1276 | $(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_beos; \ 1277 | echo "$(LIBPL)/ld_so_beos"; \ 1278 | echo; echo "See Misc/BeOS-NOTES for details."; \ 1279 | ;; \ 1280 | esac 1281 | 1282 | # Install the dynamically loadable modules 1283 | # This goes into $(exec_prefix) 1284 | sharedinstall: sharedmods 1285 | $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \ 1286 | --prefix=$(prefix) \ 1287 | --install-scripts=$(BINDIR) \ 1288 | --install-platlib=$(DESTSHARED) \ 1289 | --root=$(DESTDIR)/ 1290 | -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata.py* 1291 | 1292 | # Here are a couple of targets for MacOSX again, to install a full 1293 | # framework-based Python. frameworkinstall installs everything, the 1294 | # subtargets install specific parts. Much of the actual work is offloaded to 1295 | # the Makefile in Mac 1296 | # 1297 | # 1298 | # This target is here for backward compatibility, previous versions of Python 1299 | # hadn't integrated framework installation in the normal install process. 1300 | frameworkinstall: install 1301 | 1302 | # On install, we re-make the framework 1303 | # structure in the install location, /Library/Frameworks/ or the argument to 1304 | # --enable-framework. If --enable-framework has been specified then we have 1305 | # automatically set prefix to the location deep down in the framework, so we 1306 | # only have to cater for the structural bits of the framework. 1307 | 1308 | frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib 1309 | 1310 | frameworkinstallstructure: $(LDLIBRARY) 1311 | @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \ 1312 | echo Not configured with --enable-framework; \ 1313 | exit 1; \ 1314 | else true; \ 1315 | fi 1316 | @for i in $(prefix)/Resources/English.lproj $(prefix)/lib; do\ 1317 | if test ! -d $(DESTDIR)$$i; then \ 1318 | echo "Creating directory $(DESTDIR)$$i"; \ 1319 | $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ 1320 | else true; \ 1321 | fi; \ 1322 | done 1323 | $(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers 1324 | sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(RESSRCDIR)/Info.plist > $(DESTDIR)$(prefix)/Resources/Info.plist 1325 | $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current 1326 | $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAMEWORK) 1327 | $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers 1328 | $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources 1329 | $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY) 1330 | 1331 | # This installs Mac/Lib into the framework 1332 | # Install a number of symlinks to keep software that expects a normal unix 1333 | # install (which includes python-config) happy. 1334 | frameworkinstallmaclib: 1335 | ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).a" 1336 | ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).dylib" 1337 | ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib" 1338 | cd Mac && $(MAKE) installmacsubtree DESTDIR="$(DESTDIR)" 1339 | 1340 | # This installs the IDE, the Launcher and other apps into /Applications 1341 | frameworkinstallapps: 1342 | cd Mac && $(MAKE) installapps DESTDIR="$(DESTDIR)" 1343 | 1344 | # This install the unix python and pythonw tools in /usr/local/bin 1345 | frameworkinstallunixtools: 1346 | cd Mac && $(MAKE) installunixtools DESTDIR="$(DESTDIR)" 1347 | 1348 | frameworkaltinstallunixtools: 1349 | cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)" 1350 | 1351 | # This installs the Demos and Tools into the applications directory. 1352 | # It is not part of a normal frameworkinstall 1353 | frameworkinstallextras: 1354 | cd Mac && $(MAKE) installextras DESTDIR="$(DESTDIR)" 1355 | 1356 | # This installs a few of the useful scripts in Tools/scripts 1357 | scriptsinstall: 1358 | SRCDIR=$(srcdir) $(RUNSHARED) \ 1359 | $(PYTHON_FOR_BUILD) $(srcdir)/Tools/scripts/setup.py install \ 1360 | --prefix=$(prefix) \ 1361 | --install-scripts=$(BINDIR) \ 1362 | --root=$(DESTDIR)/ 1363 | 1364 | # Build the toplevel Makefile 1365 | Makefile.pre: Makefile.pre.in config.status 1366 | CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status 1367 | $(MAKE) -f Makefile.pre Makefile 1368 | 1369 | # Run the configure script. 1370 | config.status: $(srcdir)/configure 1371 | $(SHELL) $(srcdir)/configure $(CONFIG_ARGS) 1372 | 1373 | .PRECIOUS: config.status $(BUILDPYTHON) Makefile Makefile.pre 1374 | 1375 | # Some make's put the object file in the current directory 1376 | .c.o: 1377 | $(CC) -c $(PY_CFLAGS) -o $@ $< 1378 | 1379 | # Run reindent on the library 1380 | reindent: 1381 | ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib 1382 | 1383 | # Rerun configure with the same options as it was run last time, 1384 | # provided the config.status script exists 1385 | recheck: 1386 | $(SHELL) config.status --recheck 1387 | $(SHELL) config.status 1388 | 1389 | # Rebuild the configure script from configure.ac; also rebuild pyconfig.h.in 1390 | autoconf: 1391 | (cd $(srcdir); autoconf) 1392 | (cd $(srcdir); autoheader) 1393 | 1394 | # Create a tags file for vi 1395 | tags:: 1396 | cd $(srcdir); \ 1397 | ctags -w -t Include/*.h; \ 1398 | for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \ 1399 | done; \ 1400 | sort -o tags tags 1401 | 1402 | # Create a tags file for GNU Emacs 1403 | TAGS:: 1404 | cd $(srcdir); \ 1405 | etags Include/*.h; \ 1406 | for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done 1407 | 1408 | # Touch generated files 1409 | touch: 1410 | cd $(srcdir); \ 1411 | touch Include/Python-ast.h Python/Python-ast.c 1412 | 1413 | # Sanitation targets -- clean leaves libraries, executables and tags 1414 | # files, which clobber removes as well 1415 | pycremoval: 1416 | find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' 1417 | 1418 | clean: pycremoval 1419 | find . -name '*.[oa]' -exec rm -f {} ';' 1420 | find . -name '*.s[ol]' -exec rm -f {} ';' 1421 | find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' 1422 | find build -name 'fficonfig.h' -exec rm -f {} ';' || true 1423 | find build -name 'fficonfig.py' -exec rm -f {} ';' || true 1424 | -rm -f Lib/lib2to3/*Grammar*.pickle 1425 | -rm -rf build 1426 | 1427 | profile-removal: 1428 | find . -name '*.gc??' -exec rm -f {} ';' 1429 | find . -name '*.profclang?' -exec rm -f {} ';' 1430 | find . -name '*.dyn' -exec rm -f {} ';' 1431 | 1432 | clobber: clean profile-removal 1433 | -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ 1434 | tags TAGS \ 1435 | config.cache config.log pyconfig.h Modules/config.c 1436 | -rm -rf build platform 1437 | -rm -rf $(PYTHONFRAMEWORKDIR) 1438 | 1439 | # Make things extra clean, before making a distribution: 1440 | # remove all generated files, even Makefile[.pre] 1441 | # Keep configure and Python-ast.[ch], it's possible they can't be generated 1442 | distclean: clobber 1443 | for file in Lib/test/data/* ; do \ 1444 | if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \ 1445 | done 1446 | -rm -f core Makefile Makefile.pre config.status \ 1447 | Modules/Setup Modules/Setup.local Modules/Setup.config \ 1448 | Modules/ld_so_aix Modules/python.exp Misc/python.pc 1449 | -rm -f python*-gdb.py 1450 | -rm -f pybuilddir.txt 1451 | find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \ 1452 | -o -name '[@,#]*' -o -name '*.old' \ 1453 | -o -name '*.orig' -o -name '*.rej' \ 1454 | -o -name '*.bak' ')' \ 1455 | -exec rm -f {} ';' 1456 | 1457 | # Check for smelly exported symbols (not starting with Py/_Py) 1458 | smelly: all 1459 | nm -p $(LIBRARY) | \ 1460 | sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \ 1461 | 1462 | # Find files with funny names 1463 | funny: 1464 | find $(SUBDIRS) $(SUBDIRSTOO) -type d \ 1465 | -o -name '*.[chs]' \ 1466 | -o -name '*.py' \ 1467 | -o -name '*.doc' \ 1468 | -o -name '*.sty' \ 1469 | -o -name '*.bib' \ 1470 | -o -name '*.dat' \ 1471 | -o -name '*.el' \ 1472 | -o -name '*.fd' \ 1473 | -o -name '*.in' \ 1474 | -o -name '*.tex' \ 1475 | -o -name '*,[vpt]' \ 1476 | -o -name 'Setup' \ 1477 | -o -name 'Setup.*' \ 1478 | -o -name README \ 1479 | -o -name Makefile \ 1480 | -o -name ChangeLog \ 1481 | -o -name Repository \ 1482 | -o -name Root \ 1483 | -o -name Entries \ 1484 | -o -name Tag \ 1485 | -o -name tags \ 1486 | -o -name TAGS \ 1487 | -o -name .cvsignore \ 1488 | -o -name MANIFEST \ 1489 | -o -print 1490 | 1491 | # Perform some verification checks on any modified files. 1492 | patchcheck: 1493 | $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py 1494 | 1495 | # Dependencies 1496 | 1497 | Python/thread.o: $(srcdir)/Python/thread_atheos.h $(srcdir)/Python/thread_beos.h $(srcdir)/Python/thread_cthread.h $(srcdir)/Python/thread_foobar.h $(srcdir)/Python/thread_lwp.h $(srcdir)/Python/thread_nt.h $(srcdir)/Python/thread_os2.h $(srcdir)/Python/thread_pth.h $(srcdir)/Python/thread_pthread.h $(srcdir)/Python/thread_sgi.h $(srcdir)/Python/thread_solaris.h $(srcdir)/Python/thread_wince.h 1498 | 1499 | # Declare targets that aren't real files 1500 | .PHONY: all build_all sharedmods oldsharedmods test quicktest memtest 1501 | .PHONY: install altinstall oldsharedinstall bininstall altbininstall 1502 | .PHONY: maninstall libinstall inclinstall libainstall sharedinstall 1503 | .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure 1504 | .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools 1505 | .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean 1506 | .PHONY: smelly funny patchcheck touch altmaninstall commoninstall 1507 | .PHONY: gdbhooks 1508 | 1509 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY 1510 | 1511 | # Rules appended by makedepend 1512 | 1513 | Modules/threadmodule.o: $(srcdir)/Modules/threadmodule.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/threadmodule.c -o Modules/threadmodule.o 1514 | Modules/threadmodule$(SO): Modules/threadmodule.o; $(BLDSHARED) Modules/threadmodule.o -o Modules/threadmodule$(SO) 1515 | Modules/signalmodule.o: $(srcdir)/Modules/signalmodule.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/signalmodule.c -o Modules/signalmodule.o 1516 | Modules/signalmodule$(SO): Modules/signalmodule.o; $(BLDSHARED) Modules/signalmodule.o -o Modules/signalmodule$(SO) 1517 | Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/posixmodule.c -o Modules/posixmodule.o 1518 | Modules/posixmodule$(SO): Modules/posixmodule.o; $(BLDSHARED) Modules/posixmodule.o -o Modules/posixmodule$(SO) 1519 | Modules/errnomodule.o: $(srcdir)/Modules/errnomodule.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/errnomodule.c -o Modules/errnomodule.o 1520 | Modules/errnomodule$(SO): Modules/errnomodule.o; $(BLDSHARED) Modules/errnomodule.o -o Modules/errnomodule$(SO) 1521 | Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/pwdmodule.c -o Modules/pwdmodule.o 1522 | Modules/pwdmodule$(SO): Modules/pwdmodule.o; $(BLDSHARED) Modules/pwdmodule.o -o Modules/pwdmodule$(SO) 1523 | Modules/_sre.o: $(srcdir)/Modules/_sre.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/_sre.c -o Modules/_sre.o 1524 | Modules/_sre$(SO): Modules/_sre.o; $(BLDSHARED) Modules/_sre.o -o Modules/_sre$(SO) 1525 | Modules/_codecsmodule.o: $(srcdir)/Modules/_codecsmodule.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/_codecsmodule.c -o Modules/_codecsmodule.o 1526 | Modules/_codecsmodule$(SO): Modules/_codecsmodule.o; $(BLDSHARED) Modules/_codecsmodule.o -o Modules/_codecsmodule$(SO) 1527 | Modules/_weakref.o: $(srcdir)/Modules/_weakref.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/_weakref.c -o Modules/_weakref.o 1528 | Modules/_weakref$(SO): Modules/_weakref.o; $(BLDSHARED) Modules/_weakref.o -o Modules/_weakref$(SO) 1529 | Modules/zipimport.o: $(srcdir)/Modules/zipimport.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/zipimport.c -o Modules/zipimport.o 1530 | Modules/zipimport$(SO): Modules/zipimport.o; $(BLDSHARED) Modules/zipimport.o -o Modules/zipimport$(SO) 1531 | Modules/symtablemodule.o: $(srcdir)/Modules/symtablemodule.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/symtablemodule.c -o Modules/symtablemodule.o 1532 | Modules/_symtablemodule$(SO): Modules/symtablemodule.o; $(BLDSHARED) Modules/symtablemodule.o -o Modules/_symtablemodule$(SO) 1533 | Modules/xxsubtype.o: $(srcdir)/Modules/xxsubtype.c; $(CC) $(PY_CFLAGS) -c $(srcdir)/Modules/xxsubtype.c -o Modules/xxsubtype.o 1534 | Modules/xxsubtype$(SO): Modules/xxsubtype.o; $(BLDSHARED) Modules/xxsubtype.o -o Modules/xxsubtype$(SO) 1535 | -------------------------------------------------------------------------------- /executable/dist/main/libcrypto.so.1.0.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libcrypto.so.1.0.0 -------------------------------------------------------------------------------- /executable/dist/main/libffi.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libffi.so.6 -------------------------------------------------------------------------------- /executable/dist/main/libncursesw.so.5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libncursesw.so.5 -------------------------------------------------------------------------------- /executable/dist/main/libpython2.7.so.1.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libpython2.7.so.1.0 -------------------------------------------------------------------------------- /executable/dist/main/libreadline.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libreadline.so.6 -------------------------------------------------------------------------------- /executable/dist/main/libssl.so.1.0.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libssl.so.1.0.0 -------------------------------------------------------------------------------- /executable/dist/main/libtinfo.so.5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libtinfo.so.5 -------------------------------------------------------------------------------- /executable/dist/main/libz.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/libz.so.1 -------------------------------------------------------------------------------- /executable/dist/main/main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/main -------------------------------------------------------------------------------- /executable/dist/main/math.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/math.so -------------------------------------------------------------------------------- /executable/dist/main/operator.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/operator.so -------------------------------------------------------------------------------- /executable/dist/main/pyexpat.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/pyexpat.so -------------------------------------------------------------------------------- /executable/dist/main/readline.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/readline.so -------------------------------------------------------------------------------- /executable/dist/main/resource.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/resource.so -------------------------------------------------------------------------------- /executable/dist/main/select.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/select.so -------------------------------------------------------------------------------- /executable/dist/main/strop.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/strop.so -------------------------------------------------------------------------------- /executable/dist/main/termios.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/termios.so -------------------------------------------------------------------------------- /executable/dist/main/time.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/time.so -------------------------------------------------------------------------------- /executable/dist/main/unicodedata.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/unicodedata.so -------------------------------------------------------------------------------- /executable/dist/main/user: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/user -------------------------------------------------------------------------------- /executable/dist/main/zlib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w568w/GitHubStar/8ff43ba4f8dfbe85fa8e2bb1322df6f00059c6f6/executable/dist/main/zlib.so -------------------------------------------------------------------------------- /executable/main.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | global NAME 3 | global PASSWORD 4 | global GITNAME 5 | global GITPASSWORD 6 | import sys 7 | import requests 8 | import json 9 | import traceback 10 | import time 11 | from requests.auth import HTTPBasicAuth 12 | reload(sys) 13 | sys.setdefaultencoding('utf-8') 14 | 15 | class Gitstar(): 16 | def __init__(self,url=""): 17 | self.NAME = raw_input("") 18 | self.PASSWORD = raw_input("") 19 | self.GITNAME = raw_input("") 20 | self.GITPASSWORD = raw_input("") 21 | 22 | self.cookie = None 23 | def loginGitStar(self): 24 | r=requests.post("http://gitstar.top:88/api/user/login",params={'username':self.NAME,'password':self.PASSWORD}) 25 | self.cookie = r.headers['Set-Cookie'] 26 | return r.headers['Set-Cookie'] 27 | def getGitStarList(self): 28 | cookie=self.loginGitStar() 29 | url="http://gitstar.top:88/api/users/{}/status/recommend".format(self.NAME) 30 | response = requests.get(url,headers={'Accept': 'application/json','Cookie':cookie}) 31 | jsn=response.json() 32 | list=[] 33 | for obj in jsn: 34 | list.append(obj['Repo']) 35 | return list 36 | def star(self,url): 37 | global AUTH 38 | AUTH = HTTPBasicAuth(self.GITNAME, self.GITPASSWORD) 39 | res = requests.put("https://api.github.com/user/starred/"+url 40 | ,headers={'Content-Length': '0'} 41 | ,auth=AUTH) 42 | def update_gitstar(self): 43 | url = "http://gitstar.top:88/star_update" 44 | res = requests.get(url,headers={'Accept': 'application/json','Cookie':self.cookie}) 45 | print "update:" + str(res.status_code == 200) 46 | 47 | GS=Gitstar() 48 | urls = GS.getGitStarList() 49 | print "get total github repo:%d" % len(urls) 50 | i = 1 51 | for url in urls: 52 | GS.star(url) 53 | print "[%d]Stared! -->%s"%(i,url) 54 | time.sleep(1.0) 55 | i = i + 1 56 | if len(urls) > 0: 57 | GS.update_gitstar() 58 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | from settings import * 3 | global NAME 4 | global PASSWORD 5 | global GITNAME 6 | global GITPASSWORD 7 | import sys 8 | import requests 9 | import json 10 | import traceback 11 | import time 12 | from requests.auth import HTTPBasicAuth 13 | reload(sys) 14 | sys.setdefaultencoding('utf-8') 15 | 16 | class Gitstar(): 17 | def __init__(self,url=""): 18 | self.NAME = NAME 19 | self.PASSWORD = PASSWORD 20 | self.GITNAME = GITNAME 21 | self.GITPASSWORD = GITPASSWORD 22 | 23 | self.cookie = None 24 | def loginGitStar(self): 25 | r=requests.post("http://gitstar.top:88/api/user/login",params={'username':self.NAME,'password':self.PASSWORD}) 26 | self.cookie = r.headers['Set-Cookie'] 27 | return r.headers['Set-Cookie'] 28 | def getGitStarList(self): 29 | cookie=self.loginGitStar() 30 | url="http://gitstar.top:88/api/users/{}/status/recommend".format(self.NAME) 31 | response = requests.get(url,headers={'Accept': 'application/json','Cookie':cookie}) 32 | jsn=response.json() 33 | list=[] 34 | for obj in jsn: 35 | list.append(obj['Repo']) 36 | return list 37 | def star(self,url): 38 | global AUTH 39 | AUTH = HTTPBasicAuth(self.GITNAME, self.GITPASSWORD) 40 | res = requests.put("https://api.github.com/user/starred/"+url 41 | ,headers={'Content-Length': '0'} 42 | ,auth=AUTH) 43 | def update_gitstar(self): 44 | url = "http://gitstar.top:88/star_update" 45 | res = requests.get(url,headers={'Accept': 'application/json','Cookie':self.cookie}) 46 | print "update:" + str(res.status_code == 200) 47 | 48 | GS=Gitstar() 49 | urls = GS.getGitStarList() 50 | print "get total github repo:%d" % len(urls) 51 | i = 1 52 | for url in urls: 53 | GS.star(url) 54 | print "[%d]Stared! -->%s"%(i,url) 55 | time.sleep(1.0) 56 | i = i + 1 57 | if len(urls) > 0: 58 | GS.update_gitstar() 59 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | -------------------------------------------------------------------------------- /settings.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | #############settings############# 4 | NAME = "1" #GitStar用户名 5 | PASSWORD = "1" #GitStar密码 6 | GITNAME = "1" #GitHub用户名 7 | GITPASSWORD = "1" #GitHub密码 8 | #############settings############# 9 | --------------------------------------------------------------------------------