.
This commit is contained in:
parent
d01a0efb43
commit
76cec1429f
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/../../../../../../:\Users\kratu\PycharmProjects\Projekt_AI-Automatyczny_saper\.idea/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
10
.idea/Projekt_AI-Automatyczny_saper.iml
Normal file
10
.idea/Projekt_AI-Automatyczny_saper.iml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="jdk" jdkName="Python 3.9 (Projekt_AI-Automatyczny_saper)" jdkType="Python SDK" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
4
.idea/misc.xml
Normal file
4
.idea/misc.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (Projekt_AI-Automatyczny_saper)" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/Projekt_AI-Automatyczny_saper.iml" filepath="$PROJECT_DIR$/.idea/Projekt_AI-Automatyczny_saper.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
6
Constants.py
Normal file
6
Constants.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import pygame
|
||||||
|
WIDTH, HEIGHT = 800, 800
|
||||||
|
ROWS, COLS = 10, 10
|
||||||
|
SQUARE_SIZE = WIDTH//COLS
|
||||||
|
|
||||||
|
GREEN = (45, 115,46)
|
13
Engine/Board.py
Normal file
13
Engine/Board.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import pygame
|
||||||
|
from Constants import ROWS, COLS, SQUARE_SIZE, GREEN
|
||||||
|
|
||||||
|
|
||||||
|
class Board:
|
||||||
|
def __init__(self):
|
||||||
|
self.board = []
|
||||||
|
|
||||||
|
def draw_squares(self, win):
|
||||||
|
win.fill(GREEN)
|
||||||
|
for row in range(ROWS):
|
||||||
|
for col in range(COLS):
|
||||||
|
pygame.draw.rect(win, (0,0,0), pygame.Rect(row * SQUARE_SIZE, col * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE), 2)
|
20
Engine/Game.py
Normal file
20
Engine/Game.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import pygame
|
||||||
|
from Constants import SQUARE_SIZE, GREEN
|
||||||
|
import Board
|
||||||
|
|
||||||
|
class Game:
|
||||||
|
def __init__(self, win):
|
||||||
|
self._init()
|
||||||
|
self.win = win
|
||||||
|
|
||||||
|
def _init(self):
|
||||||
|
self.selected = None
|
||||||
|
self.board = Board()
|
||||||
|
self.turn = GREEN
|
||||||
|
self.valid_moves = {}
|
||||||
|
|
||||||
|
def update(self):
|
||||||
|
self.board.draw(self.win)
|
||||||
|
self.draw_valid_moves(self.valid_moves)
|
||||||
|
pygame.display.update()
|
||||||
|
|
BIN
Engine/__pycache__/Board.cpython-39.pyc
Normal file
BIN
Engine/__pycache__/Board.cpython-39.pyc
Normal file
Binary file not shown.
BIN
Engine/__pycache__/Game.cpython-39.pyc
Normal file
BIN
Engine/__pycache__/Game.cpython-39.pyc
Normal file
Binary file not shown.
BIN
__pycache__/Constants.cpython-39.pyc
Normal file
BIN
__pycache__/Constants.cpython-39.pyc
Normal file
Binary file not shown.
25
main.py
Normal file
25
main.py
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import pygame
|
||||||
|
from Engine.Board import Board
|
||||||
|
|
||||||
|
WIN = pygame.display.set_mode((800, 800))
|
||||||
|
FPS = 60
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
run = True
|
||||||
|
clock = pygame.time.Clock()
|
||||||
|
|
||||||
|
while run:
|
||||||
|
pygame.init()
|
||||||
|
board = Board()
|
||||||
|
clock.tick(FPS)
|
||||||
|
|
||||||
|
for event in pygame.event.get():
|
||||||
|
if event.type == pygame.QUIT:
|
||||||
|
run = False
|
||||||
|
board.draw_squares(WIN)
|
||||||
|
pygame.display.update()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
main()
|
27
venv/Include/site/python3.9/pygame/_camera.h
Normal file
27
venv/Include/site/python3.9/pygame/_camera.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _CAMERA_H
|
||||||
|
#define _CAMERA_H
|
||||||
|
|
||||||
|
#include "_pygame.h"
|
||||||
|
#include "camera.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
350
venv/Include/site/python3.9/pygame/_pygame.h
Normal file
350
venv/Include/site/python3.9/pygame/_pygame.h
Normal file
@ -0,0 +1,350 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* This will use PYGAMEAPI_EXTERN_SLOTS instead
|
||||||
|
* of PYGAMEAPI_DEFINE_SLOTS for base modules.
|
||||||
|
*/
|
||||||
|
#ifndef _PYGAME_INTERNAL_H
|
||||||
|
#define _PYGAME_INTERNAL_H
|
||||||
|
|
||||||
|
#include "pgplatform.h"
|
||||||
|
/*
|
||||||
|
If PY_SSIZE_T_CLEAN is defined before including Python.h, length is a
|
||||||
|
Py_ssize_t rather than an int for all # variants of formats (s#, y#, etc.)
|
||||||
|
*/
|
||||||
|
#define PY_SSIZE_T_CLEAN
|
||||||
|
#include <Python.h>
|
||||||
|
#include <SDL.h>
|
||||||
|
|
||||||
|
/* IS_SDLv1 is 1 if SDL 1.x.x, 0 otherwise */
|
||||||
|
/* IS_SDLv2 is 1 if at least SDL 2.0.0, 0 otherwise */
|
||||||
|
#if (SDL_VERSION_ATLEAST(2, 0, 0))
|
||||||
|
#define IS_SDLv2 1
|
||||||
|
#define IS_SDLv1 0
|
||||||
|
#else
|
||||||
|
#define IS_SDLv2 0
|
||||||
|
#define IS_SDLv1 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*#if IS_SDLv1 && PG_MAJOR_VERSION >= 2
|
||||||
|
#error pygame 2 requires SDL 2
|
||||||
|
#endif*/
|
||||||
|
|
||||||
|
#if IS_SDLv2
|
||||||
|
/* SDL 1.2 constants removed from SDL 2 */
|
||||||
|
typedef enum {
|
||||||
|
SDL_HWSURFACE = 0,
|
||||||
|
SDL_RESIZABLE = SDL_WINDOW_RESIZABLE,
|
||||||
|
SDL_ASYNCBLIT = 0,
|
||||||
|
SDL_OPENGL = SDL_WINDOW_OPENGL,
|
||||||
|
SDL_OPENGLBLIT = 0,
|
||||||
|
SDL_ANYFORMAT = 0,
|
||||||
|
SDL_HWPALETTE = 0,
|
||||||
|
SDL_DOUBLEBUF = 0,
|
||||||
|
SDL_FULLSCREEN = SDL_WINDOW_FULLSCREEN,
|
||||||
|
SDL_HWACCEL = 0,
|
||||||
|
SDL_SRCCOLORKEY = 0,
|
||||||
|
SDL_RLEACCELOK = 0,
|
||||||
|
SDL_SRCALPHA = 0,
|
||||||
|
SDL_NOFRAME = SDL_WINDOW_BORDERLESS,
|
||||||
|
SDL_GL_SWAP_CONTROL = 0,
|
||||||
|
TIMER_RESOLUTION = 0
|
||||||
|
} PygameVideoFlags;
|
||||||
|
|
||||||
|
/* the wheel button constants were removed from SDL 2 */
|
||||||
|
typedef enum {
|
||||||
|
PGM_BUTTON_LEFT = SDL_BUTTON_LEFT,
|
||||||
|
PGM_BUTTON_RIGHT = SDL_BUTTON_RIGHT,
|
||||||
|
PGM_BUTTON_MIDDLE = SDL_BUTTON_MIDDLE,
|
||||||
|
PGM_BUTTON_WHEELUP = 4,
|
||||||
|
PGM_BUTTON_WHEELDOWN = 5,
|
||||||
|
PGM_BUTTON_X1 = SDL_BUTTON_X1 + 2,
|
||||||
|
PGM_BUTTON_X2 = SDL_BUTTON_X2 + 2,
|
||||||
|
PGM_BUTTON_KEEP = 0x80
|
||||||
|
} PygameMouseFlags;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
/* Any SDL_* events here are for backward compatibility. */
|
||||||
|
SDL_NOEVENT = 0,
|
||||||
|
|
||||||
|
SDL_ACTIVEEVENT = SDL_USEREVENT,
|
||||||
|
SDL_VIDEORESIZE,
|
||||||
|
SDL_VIDEOEXPOSE,
|
||||||
|
|
||||||
|
PGE_MIDIIN,
|
||||||
|
PGE_MIDIOUT,
|
||||||
|
PGE_KEYREPEAT, /* Special internal pygame event, for managing key-presses */
|
||||||
|
|
||||||
|
/* DO NOT CHANGE THE ORDER OF EVENTS HERE */
|
||||||
|
PGE_WINDOWSHOWN,
|
||||||
|
PGE_WINDOWHIDDEN,
|
||||||
|
PGE_WINDOWEXPOSED,
|
||||||
|
PGE_WINDOWMOVED,
|
||||||
|
PGE_WINDOWRESIZED,
|
||||||
|
PGE_WINDOWSIZECHANGED,
|
||||||
|
PGE_WINDOWMINIMIZED,
|
||||||
|
PGE_WINDOWMAXIMIZED,
|
||||||
|
PGE_WINDOWRESTORED,
|
||||||
|
PGE_WINDOWENTER,
|
||||||
|
PGE_WINDOWLEAVE,
|
||||||
|
PGE_WINDOWFOCUSGAINED,
|
||||||
|
PGE_WINDOWFOCUSLOST,
|
||||||
|
PGE_WINDOWCLOSE,
|
||||||
|
PGE_WINDOWTAKEFOCUS,
|
||||||
|
PGE_WINDOWHITTEST,
|
||||||
|
|
||||||
|
/* Here we define PGPOST_* events, events that act as a one-to-one
|
||||||
|
* proxy for SDL events (and some extra events too!), the proxy is used
|
||||||
|
* internally when pygame users use event.post()
|
||||||
|
*
|
||||||
|
* Thankfully, SDL2 provides over 8000 userevents, so theres no need
|
||||||
|
* to worry about wasting userevent space.
|
||||||
|
*
|
||||||
|
* IMPORTANT NOTE: Do not post events directly with these proxy types,
|
||||||
|
* use the appropriate functions in event.c, that handle these proxy
|
||||||
|
* events for you.
|
||||||
|
* Proxy events are for internal use only */
|
||||||
|
PGPOST_EVENTBEGIN, /* mark start of proxy-events */
|
||||||
|
PGPOST_ACTIVEEVENT = PGPOST_EVENTBEGIN,
|
||||||
|
PGPOST_AUDIODEVICEADDED,
|
||||||
|
PGPOST_AUDIODEVICEREMOVED,
|
||||||
|
PGPOST_CONTROLLERAXISMOTION,
|
||||||
|
PGPOST_CONTROLLERBUTTONDOWN,
|
||||||
|
PGPOST_CONTROLLERBUTTONUP,
|
||||||
|
PGPOST_CONTROLLERDEVICEADDED,
|
||||||
|
PGPOST_CONTROLLERDEVICEREMOVED,
|
||||||
|
PGPOST_CONTROLLERDEVICEREMAPPED,
|
||||||
|
PGPOST_DOLLARGESTURE,
|
||||||
|
PGPOST_DOLLARRECORD,
|
||||||
|
PGPOST_DROPFILE,
|
||||||
|
PGPOST_DROPTEXT,
|
||||||
|
PGPOST_DROPBEGIN,
|
||||||
|
PGPOST_DROPCOMPLETE,
|
||||||
|
PGPOST_FINGERMOTION,
|
||||||
|
PGPOST_FINGERDOWN,
|
||||||
|
PGPOST_FINGERUP,
|
||||||
|
PGPOST_KEYDOWN,
|
||||||
|
PGPOST_KEYUP,
|
||||||
|
PGPOST_JOYAXISMOTION,
|
||||||
|
PGPOST_JOYBALLMOTION,
|
||||||
|
PGPOST_JOYHATMOTION,
|
||||||
|
PGPOST_JOYBUTTONDOWN,
|
||||||
|
PGPOST_JOYBUTTONUP,
|
||||||
|
PGPOST_JOYDEVICEADDED,
|
||||||
|
PGPOST_JOYDEVICEREMOVED,
|
||||||
|
PGPOST_MIDIIN,
|
||||||
|
PGPOST_MIDIOUT,
|
||||||
|
PGPOST_MOUSEMOTION,
|
||||||
|
PGPOST_MOUSEBUTTONDOWN,
|
||||||
|
PGPOST_MOUSEBUTTONUP,
|
||||||
|
PGPOST_MOUSEWHEEL,
|
||||||
|
PGPOST_MULTIGESTURE,
|
||||||
|
PGPOST_NOEVENT,
|
||||||
|
PGPOST_QUIT,
|
||||||
|
PGPOST_SYSWMEVENT,
|
||||||
|
PGPOST_TEXTEDITING,
|
||||||
|
PGPOST_TEXTINPUT,
|
||||||
|
PGPOST_VIDEORESIZE,
|
||||||
|
PGPOST_VIDEOEXPOSE,
|
||||||
|
PGPOST_WINDOWSHOWN,
|
||||||
|
PGPOST_WINDOWHIDDEN,
|
||||||
|
PGPOST_WINDOWEXPOSED,
|
||||||
|
PGPOST_WINDOWMOVED,
|
||||||
|
PGPOST_WINDOWRESIZED,
|
||||||
|
PGPOST_WINDOWSIZECHANGED,
|
||||||
|
PGPOST_WINDOWMINIMIZED,
|
||||||
|
PGPOST_WINDOWMAXIMIZED,
|
||||||
|
PGPOST_WINDOWRESTORED,
|
||||||
|
PGPOST_WINDOWENTER,
|
||||||
|
PGPOST_WINDOWLEAVE,
|
||||||
|
PGPOST_WINDOWFOCUSGAINED,
|
||||||
|
PGPOST_WINDOWFOCUSLOST,
|
||||||
|
PGPOST_WINDOWCLOSE,
|
||||||
|
PGPOST_WINDOWTAKEFOCUS,
|
||||||
|
PGPOST_WINDOWHITTEST,
|
||||||
|
|
||||||
|
PGE_USEREVENT, /* this event must stay in this position only */
|
||||||
|
|
||||||
|
PG_NUMEVENTS = SDL_LASTEVENT /* Not an event. Indicates end of user events. */
|
||||||
|
} PygameEventCode;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
SDL_APPFOCUSMOUSE,
|
||||||
|
SDL_APPINPUTFOCUS,
|
||||||
|
SDL_APPACTIVE
|
||||||
|
} PygameAppCode;
|
||||||
|
|
||||||
|
/* Surface flags: based on SDL 1.2 flags */
|
||||||
|
typedef enum {
|
||||||
|
PGS_SWSURFACE = 0x00000000,
|
||||||
|
PGS_HWSURFACE = 0x00000001,
|
||||||
|
PGS_ASYNCBLIT = 0x00000004,
|
||||||
|
|
||||||
|
PGS_ANYFORMAT = 0x10000000,
|
||||||
|
PGS_HWPALETTE = 0x20000000,
|
||||||
|
PGS_DOUBLEBUF = 0x40000000,
|
||||||
|
PGS_FULLSCREEN = 0x80000000,
|
||||||
|
PGS_SCALED = 0x00000200,
|
||||||
|
|
||||||
|
PGS_OPENGL = 0x00000002,
|
||||||
|
PGS_OPENGLBLIT = 0x0000000A,
|
||||||
|
PGS_RESIZABLE = 0x00000010,
|
||||||
|
PGS_NOFRAME = 0x00000020,
|
||||||
|
PGS_SHOWN = 0x00000040, /* Added from SDL 2 */
|
||||||
|
PGS_HIDDEN = 0x00000080, /* Added from SDL 2 */
|
||||||
|
|
||||||
|
PGS_HWACCEL = 0x00000100,
|
||||||
|
PGS_SRCCOLORKEY = 0x00001000,
|
||||||
|
PGS_RLEACCELOK = 0x00002000,
|
||||||
|
PGS_RLEACCEL = 0x00004000,
|
||||||
|
PGS_SRCALPHA = 0x00010000,
|
||||||
|
PGS_PREALLOC = 0x01000000
|
||||||
|
} PygameSurfaceFlags;
|
||||||
|
|
||||||
|
#else /* IS_SDLv2 */
|
||||||
|
|
||||||
|
/* To maintain SDL 1.2 build support. */
|
||||||
|
#define PGE_USEREVENT SDL_USEREVENT
|
||||||
|
#define PG_NUMEVENTS SDL_NUMEVENTS
|
||||||
|
#define PGPOST_EVENTBEGIN 0
|
||||||
|
/* These midi events were originally defined in midi.py.
|
||||||
|
* Note: They are outside the SDL_USEREVENT/SDL_NUMEVENTS event range for
|
||||||
|
* SDL 1.2. */
|
||||||
|
#define PGE_MIDIIN PGE_USEREVENT + 10
|
||||||
|
#define PGE_MIDIOUT PGE_USEREVENT + 11
|
||||||
|
#endif /* IS_SDLv1 */
|
||||||
|
|
||||||
|
//TODO Implement check below in a way that does not break CI
|
||||||
|
/* New buffer protocol (PEP 3118) implemented on all supported Py versions.
|
||||||
|
#if !defined(Py_TPFLAGS_HAVE_NEWBUFFER)
|
||||||
|
#error No support for PEP 3118/Py_TPFLAGS_HAVE_NEWBUFFER. Please use a supported Python version.
|
||||||
|
#endif */
|
||||||
|
|
||||||
|
#define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
|
||||||
|
#define DEL_ATTR_NOT_SUPPORTED_CHECK(name, value) \
|
||||||
|
do { \
|
||||||
|
if (!value) { \
|
||||||
|
if (name) { \
|
||||||
|
PyErr_Format(PyExc_AttributeError, \
|
||||||
|
"Cannot delete attribute %s", \
|
||||||
|
name); \
|
||||||
|
} else { \
|
||||||
|
PyErr_SetString(PyExc_AttributeError, \
|
||||||
|
"Cannot delete attribute"); \
|
||||||
|
} \
|
||||||
|
return -1; \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialization checks
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define VIDEO_INIT_CHECK() \
|
||||||
|
if (!SDL_WasInit(SDL_INIT_VIDEO)) \
|
||||||
|
return RAISE(pgExc_SDLError, "video system not initialized")
|
||||||
|
|
||||||
|
#define CDROM_INIT_CHECK() \
|
||||||
|
if (!SDL_WasInit(SDL_INIT_CDROM)) \
|
||||||
|
return RAISE(pgExc_SDLError, "cdrom system not initialized")
|
||||||
|
|
||||||
|
#define JOYSTICK_INIT_CHECK() \
|
||||||
|
if (!SDL_WasInit(SDL_INIT_JOYSTICK)) \
|
||||||
|
return RAISE(pgExc_SDLError, "joystick system not initialized")
|
||||||
|
|
||||||
|
/* thread check */
|
||||||
|
#ifdef WITH_THREAD
|
||||||
|
#define PG_CHECK_THREADS() (1)
|
||||||
|
#else /* ~WITH_THREAD */
|
||||||
|
#define PG_CHECK_THREADS() \
|
||||||
|
(RAISE(PyExc_NotImplementedError, \
|
||||||
|
"Python built without thread support"))
|
||||||
|
#endif /* ~WITH_THREAD */
|
||||||
|
|
||||||
|
#define PyType_Init(x) (((x).ob_type) = &PyType_Type)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* event module internals
|
||||||
|
*/
|
||||||
|
struct pgEventObject {
|
||||||
|
PyObject_HEAD int type;
|
||||||
|
PyObject *dict;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* surflock module internals
|
||||||
|
*/
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD PyObject *surface;
|
||||||
|
PyObject *lockobj;
|
||||||
|
PyObject *weakrefs;
|
||||||
|
} pgLifetimeLockObject;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* surface module internals
|
||||||
|
*/
|
||||||
|
struct pgSubSurface_Data {
|
||||||
|
PyObject *owner;
|
||||||
|
int pixeloffset;
|
||||||
|
int offsetx, offsety;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* color module internals
|
||||||
|
*/
|
||||||
|
struct pgColorObject {
|
||||||
|
PyObject_HEAD
|
||||||
|
Uint8 data[4];
|
||||||
|
Uint8 len;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* include public API
|
||||||
|
*/
|
||||||
|
#include "include/_pygame.h"
|
||||||
|
|
||||||
|
#include "pgimport.h"
|
||||||
|
|
||||||
|
/* Slot counts.
|
||||||
|
* Remember to keep these constants up to date.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define PYGAMEAPI_RECT_NUMSLOTS 5
|
||||||
|
#define PYGAMEAPI_JOYSTICK_NUMSLOTS 2
|
||||||
|
#define PYGAMEAPI_DISPLAY_NUMSLOTS 2
|
||||||
|
#define PYGAMEAPI_SURFACE_NUMSLOTS 4
|
||||||
|
#define PYGAMEAPI_SURFLOCK_NUMSLOTS 8
|
||||||
|
#define PYGAMEAPI_RWOBJECT_NUMSLOTS 6
|
||||||
|
#define PYGAMEAPI_PIXELARRAY_NUMSLOTS 2
|
||||||
|
#define PYGAMEAPI_COLOR_NUMSLOTS 5
|
||||||
|
#define PYGAMEAPI_MATH_NUMSLOTS 2
|
||||||
|
#define PYGAMEAPI_CDROM_NUMSLOTS 2
|
||||||
|
|
||||||
|
#if PG_API_VERSION == 1
|
||||||
|
#define PYGAMEAPI_BASE_NUMSLOTS 19
|
||||||
|
#define PYGAMEAPI_EVENT_NUMSLOTS 4
|
||||||
|
#else /* PG_API_VERSION == 2 */
|
||||||
|
#define PYGAMEAPI_BASE_NUMSLOTS 24
|
||||||
|
#define PYGAMEAPI_EVENT_NUMSLOTS 6
|
||||||
|
#endif /* PG_API_VERSION == 2 */
|
||||||
|
|
||||||
|
#endif /* _PYGAME_INTERNAL_H */
|
31
venv/Include/site/python3.9/pygame/_surface.h
Normal file
31
venv/Include/site/python3.9/pygame/_surface.h
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
Copyright (C) 2007 Marcus von Appen
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _SURFACE_H
|
||||||
|
#define _SURFACE_H
|
||||||
|
|
||||||
|
#include "_pygame.h"
|
||||||
|
#include "surface.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
205
venv/Include/site/python3.9/pygame/camera.h
Normal file
205
venv/Include/site/python3.9/pygame/camera.h
Normal file
@ -0,0 +1,205 @@
|
|||||||
|
#ifndef CAMERA_H
|
||||||
|
#define CAMERA_H
|
||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "pygame.h"
|
||||||
|
#include "doc/camera_doc.h"
|
||||||
|
|
||||||
|
#if defined(__unix__)
|
||||||
|
#include <structmember.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include <fcntl.h> /* low-level i/o */
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
/* on freebsd there is no asm/types */
|
||||||
|
#ifdef linux
|
||||||
|
#include <asm/types.h> /* for videodev2.h */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <linux/videodev2.h>
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
#include <AvailabilityMacros.h>
|
||||||
|
/* We support OSX 10.6 and below. */
|
||||||
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED <= 1060
|
||||||
|
#define PYGAME_MAC_CAMERA_OLD 1
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(PYGAME_MAC_CAMERA_OLD)
|
||||||
|
#include <QuickTime/QuickTime.h>
|
||||||
|
#include <QuickTime/Movies.h>
|
||||||
|
#include <QuickTime/ImageCompression.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* some constants used which are not defined on non-v4l machines. */
|
||||||
|
#ifndef V4L2_PIX_FMT_RGB24
|
||||||
|
#define V4L2_PIX_FMT_RGB24 'RGB3'
|
||||||
|
#endif
|
||||||
|
#ifndef V4L2_PIX_FMT_RGB444
|
||||||
|
#define V4L2_PIX_FMT_RGB444 'R444'
|
||||||
|
#endif
|
||||||
|
#ifndef V4L2_PIX_FMT_YUYV
|
||||||
|
#define V4L2_PIX_FMT_YUYV 'YUYV'
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define CLEAR(x) memset (&(x), 0, sizeof (x))
|
||||||
|
#define SAT(c) if (c & (~255)) { if (c < 0) c = 0; else c = 255; }
|
||||||
|
#define SAT2(c) ((c) & (~255) ? ((c) < 0 ? 0 : 255) : (c))
|
||||||
|
#define DEFAULT_WIDTH 640
|
||||||
|
#define DEFAULT_HEIGHT 480
|
||||||
|
#define RGB_OUT 1
|
||||||
|
#define YUV_OUT 2
|
||||||
|
#define HSV_OUT 4
|
||||||
|
#define CAM_V4L 1 /* deprecated. the incomplete support in pygame was removed */
|
||||||
|
#define CAM_V4L2 2
|
||||||
|
|
||||||
|
struct buffer {
|
||||||
|
void * start;
|
||||||
|
size_t length;
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(__unix__)
|
||||||
|
typedef struct pgCameraObject {
|
||||||
|
PyObject_HEAD
|
||||||
|
char* device_name;
|
||||||
|
int camera_type;
|
||||||
|
unsigned long pixelformat;
|
||||||
|
unsigned int color_out;
|
||||||
|
struct buffer* buffers;
|
||||||
|
unsigned int n_buffers;
|
||||||
|
int width;
|
||||||
|
int height;
|
||||||
|
int size;
|
||||||
|
int hflip;
|
||||||
|
int vflip;
|
||||||
|
int brightness;
|
||||||
|
int fd;
|
||||||
|
} pgCameraObject;
|
||||||
|
#elif defined(PYGAME_MAC_CAMERA_OLD)
|
||||||
|
typedef struct pgCameraObject {
|
||||||
|
PyObject_HEAD
|
||||||
|
char* device_name; /* unique name of the device */
|
||||||
|
OSType pixelformat;
|
||||||
|
unsigned int color_out;
|
||||||
|
SeqGrabComponent component; /* A type used by the Sequence Grabber API */
|
||||||
|
SGChannel channel; /* Channel of the Sequence Grabber */
|
||||||
|
GWorldPtr gworld; /* Pointer to the struct that holds the data of the captured image */
|
||||||
|
Rect boundsRect; /* bounds of the image frame */
|
||||||
|
long size; /* size of the image in our buffer to draw */
|
||||||
|
int hflip;
|
||||||
|
int vflip;
|
||||||
|
short depth;
|
||||||
|
struct buffer pixels;
|
||||||
|
//struct buffer tmp_pixels /* place where the flipped image in temporarily stored if hflip or vflip is true.*/
|
||||||
|
} pgCameraObject;
|
||||||
|
|
||||||
|
#else
|
||||||
|
/* generic definition.
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef struct pgCameraObject {
|
||||||
|
PyObject_HEAD
|
||||||
|
char* device_name;
|
||||||
|
int camera_type;
|
||||||
|
unsigned long pixelformat;
|
||||||
|
unsigned int color_out;
|
||||||
|
struct buffer* buffers;
|
||||||
|
unsigned int n_buffers;
|
||||||
|
int width;
|
||||||
|
int height;
|
||||||
|
int size;
|
||||||
|
int hflip;
|
||||||
|
int vflip;
|
||||||
|
int brightness;
|
||||||
|
int fd;
|
||||||
|
} pgCameraObject;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* internal functions for colorspace conversion */
|
||||||
|
void colorspace (SDL_Surface *src, SDL_Surface *dst, int cspace);
|
||||||
|
void rgb24_to_rgb (const void* src, void* dst, int length, SDL_PixelFormat* format);
|
||||||
|
void rgb444_to_rgb (const void* src, void* dst, int length, SDL_PixelFormat* format);
|
||||||
|
void rgb_to_yuv (const void* src, void* dst, int length,
|
||||||
|
unsigned long source, SDL_PixelFormat* format);
|
||||||
|
void rgb_to_hsv (const void* src, void* dst, int length,
|
||||||
|
unsigned long source, SDL_PixelFormat* format);
|
||||||
|
void yuyv_to_rgb (const void* src, void* dst, int length, SDL_PixelFormat* format);
|
||||||
|
void yuyv_to_yuv (const void* src, void* dst, int length, SDL_PixelFormat* format);
|
||||||
|
void uyvy_to_rgb (const void* src, void* dst, int length, SDL_PixelFormat* format);
|
||||||
|
void uyvy_to_yuv (const void* src, void* dst, int length, SDL_PixelFormat* format);
|
||||||
|
void sbggr8_to_rgb (const void* src, void* dst, int width, int height,
|
||||||
|
SDL_PixelFormat* format);
|
||||||
|
void yuv420_to_rgb (const void* src, void* dst, int width, int height,
|
||||||
|
SDL_PixelFormat* format);
|
||||||
|
void yuv420_to_yuv (const void* src, void* dst, int width, int height,
|
||||||
|
SDL_PixelFormat* format);
|
||||||
|
|
||||||
|
#if defined(__unix__)
|
||||||
|
/* internal functions specific to v4l2 */
|
||||||
|
char** v4l2_list_cameras (int* num_devices);
|
||||||
|
int v4l2_get_control (int fd, int id, int *value);
|
||||||
|
int v4l2_set_control (int fd, int id, int value);
|
||||||
|
PyObject* v4l2_read_raw (pgCameraObject* self);
|
||||||
|
int v4l2_xioctl (int fd, int request, void *arg);
|
||||||
|
int v4l2_process_image (pgCameraObject* self, const void *image,
|
||||||
|
unsigned int buffer_size, SDL_Surface* surf);
|
||||||
|
int v4l2_query_buffer (pgCameraObject* self);
|
||||||
|
int v4l2_read_frame (pgCameraObject* self, SDL_Surface* surf);
|
||||||
|
int v4l2_stop_capturing (pgCameraObject* self);
|
||||||
|
int v4l2_start_capturing (pgCameraObject* self);
|
||||||
|
int v4l2_uninit_device (pgCameraObject* self);
|
||||||
|
int v4l2_init_mmap (pgCameraObject* self);
|
||||||
|
int v4l2_init_device (pgCameraObject* self);
|
||||||
|
int v4l2_close_device (pgCameraObject* self);
|
||||||
|
int v4l2_open_device (pgCameraObject* self);
|
||||||
|
|
||||||
|
#elif defined(PYGAME_MAC_CAMERA_OLD)
|
||||||
|
/* internal functions specific to mac */
|
||||||
|
char** mac_list_cameras(int* num_devices);
|
||||||
|
int mac_open_device (pgCameraObject* self);
|
||||||
|
int mac_init_device(pgCameraObject* self);
|
||||||
|
int mac_close_device (pgCameraObject* self);
|
||||||
|
int mac_start_capturing(pgCameraObject* self);
|
||||||
|
int mac_stop_capturing (pgCameraObject* self);
|
||||||
|
|
||||||
|
int mac_get_control(pgCameraObject* self, int id, int* value);
|
||||||
|
int mac_set_control(pgCameraObject* self, int id, int value);
|
||||||
|
|
||||||
|
PyObject* mac_read_raw(pgCameraObject *self);
|
||||||
|
int mac_read_frame(pgCameraObject* self, SDL_Surface* surf);
|
||||||
|
int mac_camera_idle(pgCameraObject* self);
|
||||||
|
int mac_copy_gworld_to_surface(pgCameraObject* self, SDL_Surface* surf);
|
||||||
|
|
||||||
|
void flip_image(const void* image, void* flipped_image, int width, int height,
|
||||||
|
short depth, int hflip, int vflip);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* !CAMERA_H */
|
48
venv/Include/site/python3.9/pygame/fastevents.h
Normal file
48
venv/Include/site/python3.9/pygame/fastevents.h
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
#ifndef _FASTEVENTS_H_
|
||||||
|
#define _FASTEVENTS_H_
|
||||||
|
/*
|
||||||
|
NET2 is a threaded, event based, network IO library for SDL.
|
||||||
|
Copyright (C) 2002 Bob Pendleton
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2.1
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA
|
||||||
|
|
||||||
|
If you do not wish to comply with the terms of the LGPL please
|
||||||
|
contact the author as other terms are available for a fee.
|
||||||
|
|
||||||
|
Bob Pendleton
|
||||||
|
Bob@Pendleton.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "SDL.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int FE_Init(void); // Initialize FE
|
||||||
|
void FE_Quit(void); // shutdown FE
|
||||||
|
|
||||||
|
void FE_PumpEvents(void); // replacement for SDL_PumpEvents
|
||||||
|
int FE_PollEvent(SDL_Event *event); // replacement for SDL_PollEvent
|
||||||
|
int FE_WaitEvent(SDL_Event *event); // replacement for SDL_WaitEvent
|
||||||
|
int FE_PushEvent(SDL_Event *event); // replacement for SDL_PushEvent
|
||||||
|
|
||||||
|
char *FE_GetError(void); // get the last error
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
15
venv/Include/site/python3.9/pygame/font.h
Normal file
15
venv/Include/site/python3.9/pygame/font.h
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#ifndef PGFONT_INTERNAL_H
|
||||||
|
#define PGFONT_INTERNAL_H
|
||||||
|
|
||||||
|
#include <SDL_ttf.h>
|
||||||
|
|
||||||
|
/* test font initialization */
|
||||||
|
#define FONT_INIT_CHECK() \
|
||||||
|
if(!(*(int*)PyFONT_C_API[2])) \
|
||||||
|
return RAISE(pgExc_SDLError, "font system not initialized")
|
||||||
|
|
||||||
|
#include "include/pygame_font.h"
|
||||||
|
|
||||||
|
#define PYGAMEAPI_FONT_NUMSLOTS 3
|
||||||
|
|
||||||
|
#endif /* ~PGFONT_INTERNAL_H */
|
123
venv/Include/site/python3.9/pygame/freetype.h
Normal file
123
venv/Include/site/python3.9/pygame/freetype.h
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2009 Vicent Marti
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
*/
|
||||||
|
#ifndef _PYGAME_FREETYPE_INTERNAL_H_
|
||||||
|
#define _PYGAME_FREETYPE_INTERNAL_H_
|
||||||
|
|
||||||
|
#define PGFT_PYGAME1_COMPAT
|
||||||
|
#define HAVE_PYGAME_SDL_VIDEO
|
||||||
|
#define HAVE_PYGAME_SDL_RWOPS
|
||||||
|
|
||||||
|
#include "pgcompat.h"
|
||||||
|
#include "pgplatform.h"
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
#include <ft2build.h>
|
||||||
|
#include FT_FREETYPE_H
|
||||||
|
#include FT_CACHE_H
|
||||||
|
#include FT_XFREE86_H
|
||||||
|
#include FT_TRIGONOMETRY_H
|
||||||
|
|
||||||
|
/**********************************************************
|
||||||
|
* Global module constants
|
||||||
|
**********************************************************/
|
||||||
|
|
||||||
|
/* Render styles */
|
||||||
|
#define FT_STYLE_NORMAL 0x00
|
||||||
|
#define FT_STYLE_STRONG 0x01
|
||||||
|
#define FT_STYLE_OBLIQUE 0x02
|
||||||
|
#define FT_STYLE_UNDERLINE 0x04
|
||||||
|
#define FT_STYLE_WIDE 0x08
|
||||||
|
#define FT_STYLE_DEFAULT 0xFF
|
||||||
|
|
||||||
|
/* Bounding box modes */
|
||||||
|
#define FT_BBOX_EXACT FT_GLYPH_BBOX_SUBPIXELS
|
||||||
|
#define FT_BBOX_EXACT_GRIDFIT FT_GLYPH_BBOX_GRIDFIT
|
||||||
|
#define FT_BBOX_PIXEL FT_GLYPH_BBOX_TRUNCATE
|
||||||
|
#define FT_BBOX_PIXEL_GRIDFIT FT_GLYPH_BBOX_PIXELS
|
||||||
|
|
||||||
|
/* Rendering flags */
|
||||||
|
#define FT_RFLAG_NONE (0)
|
||||||
|
#define FT_RFLAG_ANTIALIAS (1 << 0)
|
||||||
|
#define FT_RFLAG_AUTOHINT (1 << 1)
|
||||||
|
#define FT_RFLAG_VERTICAL (1 << 2)
|
||||||
|
#define FT_RFLAG_HINTED (1 << 3)
|
||||||
|
#define FT_RFLAG_KERNING (1 << 4)
|
||||||
|
#define FT_RFLAG_TRANSFORM (1 << 5)
|
||||||
|
#define FT_RFLAG_PAD (1 << 6)
|
||||||
|
#define FT_RFLAG_ORIGIN (1 << 7)
|
||||||
|
#define FT_RFLAG_UCS4 (1 << 8)
|
||||||
|
#define FT_RFLAG_USE_BITMAP_STRIKES (1 << 9)
|
||||||
|
#define FT_RFLAG_DEFAULTS (FT_RFLAG_HINTED | \
|
||||||
|
FT_RFLAG_USE_BITMAP_STRIKES | \
|
||||||
|
FT_RFLAG_ANTIALIAS)
|
||||||
|
|
||||||
|
|
||||||
|
#define FT_RENDER_NEWBYTEARRAY 0x0
|
||||||
|
#define FT_RENDER_NEWSURFACE 0x1
|
||||||
|
#define FT_RENDER_EXISTINGSURFACE 0x2
|
||||||
|
|
||||||
|
/**********************************************************
|
||||||
|
* Global module types
|
||||||
|
**********************************************************/
|
||||||
|
|
||||||
|
typedef struct _scale_s {
|
||||||
|
FT_UInt x, y;
|
||||||
|
} Scale_t;
|
||||||
|
typedef FT_Angle Angle_t;
|
||||||
|
|
||||||
|
struct fontinternals_;
|
||||||
|
struct freetypeinstance_;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
FT_Long font_index;
|
||||||
|
FT_Open_Args open_args;
|
||||||
|
} pgFontId;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD
|
||||||
|
pgFontId id;
|
||||||
|
PyObject *path;
|
||||||
|
int is_scalable;
|
||||||
|
int is_bg_col_set;
|
||||||
|
|
||||||
|
Scale_t face_size;
|
||||||
|
FT_Int16 style;
|
||||||
|
FT_Int16 render_flags;
|
||||||
|
double strength;
|
||||||
|
double underline_adjustment;
|
||||||
|
FT_UInt resolution;
|
||||||
|
Angle_t rotation;
|
||||||
|
FT_Matrix transform;
|
||||||
|
FT_Byte fgcolor[4];
|
||||||
|
FT_Byte bgcolor[4];
|
||||||
|
|
||||||
|
struct freetypeinstance_ *freetype; /* Personal reference */
|
||||||
|
struct fontinternals_ *_internals;
|
||||||
|
} pgFontObject;
|
||||||
|
|
||||||
|
#define pgFont_IS_ALIVE(o) \
|
||||||
|
(((pgFontObject *)(o))->_internals != 0)
|
||||||
|
|
||||||
|
/* import public API */
|
||||||
|
#include "include/pygame_freetype.h"
|
||||||
|
|
||||||
|
#define PYGAMEAPI_FREETYPE_NUMSLOTS 2
|
||||||
|
|
||||||
|
#endif /* ~_PYGAME_FREETYPE_INTERNAL_H_ */
|
649
venv/Include/site/python3.9/pygame/include/_pygame.h
Normal file
649
venv/Include/site/python3.9/pygame/include/_pygame.h
Normal file
@ -0,0 +1,649 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _PYGAME_H
|
||||||
|
#define _PYGAME_H
|
||||||
|
|
||||||
|
/** This header file includes all the definitions for the
|
||||||
|
** base pygame extensions. This header only requires
|
||||||
|
** Python includes (and SDL.h for functions that use SDL types).
|
||||||
|
** The reason for functions prototyped with #define's is
|
||||||
|
** to allow for maximum Python portability. It also uses
|
||||||
|
** Python as the runtime linker, which allows for late binding.
|
||||||
|
'' For more information on this style of development, read
|
||||||
|
** the Python docs on this subject.
|
||||||
|
** http://www.python.org/doc/current/ext/using-cobjects.html
|
||||||
|
**
|
||||||
|
** If using this to build your own derived extensions,
|
||||||
|
** you'll see that the functions available here are mainly
|
||||||
|
** used to help convert between python objects and SDL objects.
|
||||||
|
** Since this library doesn't add a lot of functionality to
|
||||||
|
** the SDL library, it doesn't need to offer a lot either.
|
||||||
|
**
|
||||||
|
** When initializing your extension module, you must manually
|
||||||
|
** import the modules you want to use. (this is the part about
|
||||||
|
** using python as the runtime linker). Each module has its
|
||||||
|
** own import_xxx() routine. You need to perform this import
|
||||||
|
** after you have initialized your own module, and before
|
||||||
|
** you call any routines from that module. Since every module
|
||||||
|
** in pygame does this, there are plenty of examples.
|
||||||
|
**
|
||||||
|
** The base module does include some useful conversion routines
|
||||||
|
** that you are free to use in your own extension.
|
||||||
|
**/
|
||||||
|
|
||||||
|
#include "pgplatform.h"
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
|
||||||
|
/* version macros (defined since version 1.9.5) */
|
||||||
|
#define PG_MAJOR_VERSION 2
|
||||||
|
#define PG_MINOR_VERSION 0
|
||||||
|
#define PG_PATCH_VERSION 1
|
||||||
|
#define PG_VERSIONNUM(MAJOR, MINOR, PATCH) (1000*(MAJOR) + 100*(MINOR) + (PATCH))
|
||||||
|
#define PG_VERSION_ATLEAST(MAJOR, MINOR, PATCH) \
|
||||||
|
(PG_VERSIONNUM(PG_MAJOR_VERSION, PG_MINOR_VERSION, PG_PATCH_VERSION) >= \
|
||||||
|
PG_VERSIONNUM(MAJOR, MINOR, PATCH))
|
||||||
|
|
||||||
|
/* SDL 1.x/2.x and pygame 1.x/2.x
|
||||||
|
*/
|
||||||
|
#if defined(SDL_VERSION_ATLEAST)
|
||||||
|
#if (SDL_VERSION_ATLEAST(2, 0, 0))
|
||||||
|
#define PG_API_VERSION 2
|
||||||
|
#else /* SDL 1 */
|
||||||
|
/* for now: allow pygame 2 to be compiled with SDL 1. */
|
||||||
|
#define PG_API_VERSION 1
|
||||||
|
#endif /* SDL 1 */
|
||||||
|
#else /* NO SDL */
|
||||||
|
#define PG_API_VERSION ((PG_MAJOR_VERSION == 1) ? 1 : 2)
|
||||||
|
#endif /* NO SDL */
|
||||||
|
|
||||||
|
#include "pgcompat.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* Flag indicating a pg_buffer; used for assertions within callbacks */
|
||||||
|
#ifndef NDEBUG
|
||||||
|
#define PyBUF_PYGAME 0x4000
|
||||||
|
#endif
|
||||||
|
#define PyBUF_HAS_FLAG(f, F) (((f) & (F)) == (F))
|
||||||
|
|
||||||
|
/* Array information exchange struct C type; inherits from Py_buffer
|
||||||
|
*
|
||||||
|
* Pygame uses its own Py_buffer derived C struct as an internal representation
|
||||||
|
* of an imported array buffer. The extended Py_buffer allows for a
|
||||||
|
* per-instance release callback,
|
||||||
|
*/
|
||||||
|
typedef void (*pybuffer_releaseproc)(Py_buffer *);
|
||||||
|
|
||||||
|
typedef struct pg_bufferinfo_s {
|
||||||
|
Py_buffer view;
|
||||||
|
PyObject *consumer; /* Input: Borrowed reference */
|
||||||
|
pybuffer_releaseproc release_buffer;
|
||||||
|
} pg_buffer;
|
||||||
|
|
||||||
|
#include "pgimport.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* BASE module
|
||||||
|
*/
|
||||||
|
#ifndef PYGAMEAPI_BASE_INTERNAL
|
||||||
|
#define pgExc_SDLError \
|
||||||
|
((PyObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 0))
|
||||||
|
|
||||||
|
#define pg_RegisterQuit \
|
||||||
|
(*(void (*)(void (*)(void))) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 1))
|
||||||
|
|
||||||
|
#define pg_IntFromObj \
|
||||||
|
(*(int (*)(PyObject *, int *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 2))
|
||||||
|
|
||||||
|
#define pg_IntFromObjIndex \
|
||||||
|
(*(int (*)(PyObject *, int, int *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 3))
|
||||||
|
|
||||||
|
#define pg_TwoIntsFromObj \
|
||||||
|
(*(int (*)(PyObject *, int *, int *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 4))
|
||||||
|
|
||||||
|
#define pg_FloatFromObj \
|
||||||
|
(*(int (*)(PyObject *, float *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 5))
|
||||||
|
|
||||||
|
#define pg_FloatFromObjIndex \
|
||||||
|
(*(int (*)(PyObject *, int, float *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 6))
|
||||||
|
|
||||||
|
#define pg_TwoFloatsFromObj \
|
||||||
|
(*(int (*)(PyObject *, float *, float *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 7))
|
||||||
|
|
||||||
|
#define pg_UintFromObj \
|
||||||
|
(*(int (*)(PyObject *, Uint32 *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 8))
|
||||||
|
|
||||||
|
#define pg_UintFromObjIndex \
|
||||||
|
(*(int (*)(PyObject *, int, Uint32 *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 9))
|
||||||
|
|
||||||
|
#define pgVideo_AutoQuit \
|
||||||
|
(*(void (*)(void)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 10))
|
||||||
|
|
||||||
|
#define pgVideo_AutoInit \
|
||||||
|
(*(int (*)(void)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 11))
|
||||||
|
|
||||||
|
#define pg_RGBAFromObj \
|
||||||
|
(*(int (*)(PyObject *, Uint8 *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 12))
|
||||||
|
|
||||||
|
#define pgBuffer_AsArrayInterface \
|
||||||
|
(*(PyObject * (*)(Py_buffer *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 13))
|
||||||
|
|
||||||
|
#define pgBuffer_AsArrayStruct \
|
||||||
|
(*(PyObject * (*)(Py_buffer *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 14))
|
||||||
|
|
||||||
|
#define pgObject_GetBuffer \
|
||||||
|
(*(int (*)(PyObject *, pg_buffer *, int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 15))
|
||||||
|
|
||||||
|
#define pgBuffer_Release \
|
||||||
|
(*(void (*)(pg_buffer *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 16))
|
||||||
|
|
||||||
|
#define pgDict_AsBuffer \
|
||||||
|
(*(int (*)(pg_buffer *, PyObject *, int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 17))
|
||||||
|
|
||||||
|
#define pgExc_BufferError \
|
||||||
|
((PyObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 18))
|
||||||
|
|
||||||
|
#if PG_API_VERSION == 2
|
||||||
|
#define pg_GetDefaultWindow \
|
||||||
|
(*(SDL_Window * (*)(void)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 19))
|
||||||
|
|
||||||
|
#define pg_SetDefaultWindow \
|
||||||
|
(*(void (*)(SDL_Window *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 20))
|
||||||
|
|
||||||
|
#define pg_GetDefaultWindowSurface \
|
||||||
|
(*(pgSurfaceObject * (*)(void)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 21))
|
||||||
|
|
||||||
|
#define pg_SetDefaultWindowSurface \
|
||||||
|
(*(void (*)(pgSurfaceObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 22))
|
||||||
|
|
||||||
|
#define pg_EnvShouldBlendAlphaSDL2 \
|
||||||
|
(*(char * (*)(void)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(base, 23))
|
||||||
|
|
||||||
|
#endif /* PG_API_VERSION == 2 */
|
||||||
|
|
||||||
|
#define import_pygame_base() IMPORT_PYGAME_MODULE(base)
|
||||||
|
#endif /* ~PYGAMEAPI_BASE_INTERNAL */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* RECT module
|
||||||
|
*/
|
||||||
|
#if !defined(SDL_VERSION_ATLEAST) || PG_API_VERSION == 1
|
||||||
|
typedef struct {
|
||||||
|
int x, y;
|
||||||
|
int w, h;
|
||||||
|
} GAME_Rect;
|
||||||
|
#else /* SDL 2+ */
|
||||||
|
typedef SDL_Rect GAME_Rect;
|
||||||
|
#endif /* SDL 2+ */
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD GAME_Rect r;
|
||||||
|
PyObject *weakreflist;
|
||||||
|
} pgRectObject;
|
||||||
|
|
||||||
|
#define pgRect_AsRect(x) (((pgRectObject *)x)->r)
|
||||||
|
#ifndef PYGAMEAPI_RECT_INTERNAL
|
||||||
|
#define pgRect_Type \
|
||||||
|
(*(PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rect, 0))
|
||||||
|
|
||||||
|
#define pgRect_Check(x) \
|
||||||
|
((x)->ob_type == &pgRect_Type)
|
||||||
|
#define pgRect_New \
|
||||||
|
(*(PyObject * (*)(SDL_Rect *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rect, 1))
|
||||||
|
|
||||||
|
#define pgRect_New4 \
|
||||||
|
(*(PyObject * (*)(int, int, int, int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rect, 2))
|
||||||
|
|
||||||
|
#define pgRect_FromObject \
|
||||||
|
(*(GAME_Rect * (*)(PyObject *, GAME_Rect *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rect, 3))
|
||||||
|
|
||||||
|
#define pgRect_Normalize (*(void (*)(GAME_Rect *)) PYGAMEAPI_GET_SLOT(rect, 4))
|
||||||
|
|
||||||
|
#define import_pygame_rect() IMPORT_PYGAME_MODULE(rect)
|
||||||
|
#endif /* ~PYGAMEAPI_RECT_INTERNAL */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* CDROM module
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD int id;
|
||||||
|
} pgCDObject;
|
||||||
|
|
||||||
|
#define pgCD_AsID(x) (((pgCDObject *)x)->id)
|
||||||
|
#ifndef PYGAMEAPI_CDROM_INTERNAL
|
||||||
|
#define pgCD_Type \
|
||||||
|
(*(PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(cdrom, 0))
|
||||||
|
|
||||||
|
#define pgCD_Check(x) \
|
||||||
|
((x)->ob_type == &pgCD_Type)
|
||||||
|
#define pgCD_New \
|
||||||
|
(*(PyObject * (*)(int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(cdrom, 1))
|
||||||
|
|
||||||
|
#define import_pygame_cd() IMPORT_PYGAME_MODULE(cdrom)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* JOYSTICK module
|
||||||
|
*/
|
||||||
|
typedef struct pgJoystickObject {
|
||||||
|
PyObject_HEAD
|
||||||
|
int id;
|
||||||
|
SDL_Joystick *joy;
|
||||||
|
|
||||||
|
/* Joysticks form an intrusive linked list.
|
||||||
|
*
|
||||||
|
* Note that we don't maintain refcounts for these so they are weakrefs from
|
||||||
|
* the Python side.
|
||||||
|
*/
|
||||||
|
struct pgJoystickObject *next;
|
||||||
|
struct pgJoystickObject *prev;
|
||||||
|
} pgJoystickObject;
|
||||||
|
|
||||||
|
#define pgJoystick_AsID(x) (((pgJoystickObject *)x)->id)
|
||||||
|
#define pgJoystick_AsSDL(x) (((pgJoystickObject *)x)->joy)
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_JOYSTICK_INTERNAL
|
||||||
|
#define pgJoystick_Type \
|
||||||
|
(*(PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(joystick, 0))
|
||||||
|
|
||||||
|
#define pgJoystick_Check(x) \
|
||||||
|
((x)->ob_type == &pgJoystick_Type)
|
||||||
|
#define pgJoystick_New \
|
||||||
|
(*(PyObject * (*)(int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(joystick, 1))
|
||||||
|
|
||||||
|
#define import_pygame_joystick() IMPORT_PYGAME_MODULE(joystick)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DISPLAY module
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(SDL_VERSION_ATLEAST)
|
||||||
|
|
||||||
|
#if PG_API_VERSION == 2
|
||||||
|
typedef struct {
|
||||||
|
Uint32 hw_available:1;
|
||||||
|
Uint32 wm_available:1;
|
||||||
|
Uint32 blit_hw:1;
|
||||||
|
Uint32 blit_hw_CC:1;
|
||||||
|
Uint32 blit_hw_A:1;
|
||||||
|
Uint32 blit_sw:1;
|
||||||
|
Uint32 blit_sw_CC:1;
|
||||||
|
Uint32 blit_sw_A:1;
|
||||||
|
Uint32 blit_fill:1;
|
||||||
|
Uint32 video_mem;
|
||||||
|
SDL_PixelFormat *vfmt;
|
||||||
|
SDL_PixelFormat vfmt_data;
|
||||||
|
int current_w;
|
||||||
|
int current_h;
|
||||||
|
} pg_VideoInfo;
|
||||||
|
#endif /* PG_API_VERSION == 2 */
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
#if PG_API_VERSION == 1
|
||||||
|
PyObject_HEAD SDL_VideoInfo info;
|
||||||
|
#else
|
||||||
|
PyObject_HEAD pg_VideoInfo info;
|
||||||
|
#endif
|
||||||
|
} pgVidInfoObject;
|
||||||
|
|
||||||
|
#define pgVidInfo_AsVidInfo(x) (((pgVidInfoObject *)x)->info)
|
||||||
|
#endif /* defined(SDL_VERSION_ATLEAST) */
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_DISPLAY_INTERNAL
|
||||||
|
#define pgVidInfo_Type \
|
||||||
|
(*(PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(display, 0))
|
||||||
|
|
||||||
|
#define pgVidInfo_Check(x) \
|
||||||
|
((x)->ob_type == &pgVidInfo_Type)
|
||||||
|
|
||||||
|
#if PG_API_VERSION == 1
|
||||||
|
#define pgVidInfo_New \
|
||||||
|
(*(PyObject * (*)(SDL_VideoInfo *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(display, 1))
|
||||||
|
#else
|
||||||
|
#define pgVidInfo_New \
|
||||||
|
(*(PyObject * (*)(pg_VideoInfo *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(display, 1))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define import_pygame_display() IMPORT_PYGAME_MODULE(display)
|
||||||
|
#endif /* ~PYGAMEAPI_DISPLAY_INTERNAL */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SURFACE module
|
||||||
|
*/
|
||||||
|
struct pgSubSurface_Data;
|
||||||
|
struct SDL_Surface;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD struct SDL_Surface *surf;
|
||||||
|
#if PG_API_VERSION == 2
|
||||||
|
int owner;
|
||||||
|
#endif /* PG_API_VERSION == 2 */
|
||||||
|
struct pgSubSurface_Data *subsurface; /* ptr to subsurface data (if a
|
||||||
|
* subsurface)*/
|
||||||
|
PyObject *weakreflist;
|
||||||
|
PyObject *locklist;
|
||||||
|
PyObject *dependency;
|
||||||
|
} pgSurfaceObject;
|
||||||
|
#define pgSurface_AsSurface(x) (((pgSurfaceObject *)x)->surf)
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_SURFACE_INTERNAL
|
||||||
|
#define pgSurface_Type \
|
||||||
|
(*(PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surface, 0))
|
||||||
|
|
||||||
|
#define pgSurface_Check(x) \
|
||||||
|
(PyObject_IsInstance((x), (PyObject *) &pgSurface_Type))
|
||||||
|
#if PG_API_VERSION == 1
|
||||||
|
#define pgSurface_New \
|
||||||
|
(*(pgSurfaceObject * (*)(SDL_Surface *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surface, 1))
|
||||||
|
|
||||||
|
#define pgSurface_SetSurface \
|
||||||
|
(*(int (*)(pgSurfaceObject *, SDL_Surface *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surface, 3))
|
||||||
|
|
||||||
|
#else /* PG_API_VERSION == 2 */
|
||||||
|
#define pgSurface_New2 \
|
||||||
|
(*(pgSurfaceObject * (*)(SDL_Surface *, int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surface, 1))
|
||||||
|
|
||||||
|
#define pgSurface_SetSurface \
|
||||||
|
(*(int (*)(pgSurfaceObject *, SDL_Surface *, int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surface, 3))
|
||||||
|
|
||||||
|
#endif /* PG_API_VERSION == 2 */
|
||||||
|
#define pgSurface_Blit \
|
||||||
|
(*(int (*)(pgSurfaceObject *, pgSurfaceObject *, GAME_Rect *, GAME_Rect *, int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surface, 2))
|
||||||
|
|
||||||
|
#define import_pygame_surface() \
|
||||||
|
do { \
|
||||||
|
IMPORT_PYGAME_MODULE(surface); \
|
||||||
|
if (PyErr_Occurred() != NULL) \
|
||||||
|
break; \
|
||||||
|
IMPORT_PYGAME_MODULE(surflock); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#if PG_API_VERSION == 2
|
||||||
|
#define pgSurface_New(surface) pgSurface_New2((surface), 1)
|
||||||
|
#define pgSurface_NewNoOwn(surface) pgSurface_New2((surface), 0)
|
||||||
|
#endif /* PG_API_VERSION == 2 */
|
||||||
|
|
||||||
|
#endif /* ~PYGAMEAPI_SURFACE_INTERNAL */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SURFLOCK module
|
||||||
|
* auto imported/initialized by surface
|
||||||
|
*/
|
||||||
|
#ifndef PYGAMEAPI_SURFLOCK_INTERNAL
|
||||||
|
#define pgLifetimeLock_Type \
|
||||||
|
(*(PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 0))
|
||||||
|
|
||||||
|
#define pgLifetimeLock_Check(x) \
|
||||||
|
((x)->ob_type == &pgLifetimeLock_Type)
|
||||||
|
|
||||||
|
#define pgSurface_Prep(x) \
|
||||||
|
if ((x)->subsurface) \
|
||||||
|
(*(*(void (*)(pgSurfaceObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 1)))(x)
|
||||||
|
|
||||||
|
#define pgSurface_Unprep(x) \
|
||||||
|
if ((x)->subsurface) \
|
||||||
|
(*(*(void (*)(pgSurfaceObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 2)))(x)
|
||||||
|
|
||||||
|
#define pgSurface_Lock \
|
||||||
|
(*(int (*)(pgSurfaceObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 3))
|
||||||
|
|
||||||
|
#define pgSurface_Unlock \
|
||||||
|
(*(int (*)(pgSurfaceObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 4))
|
||||||
|
|
||||||
|
#define pgSurface_LockBy \
|
||||||
|
(*(int (*)(pgSurfaceObject *, PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 5))
|
||||||
|
|
||||||
|
#define pgSurface_UnlockBy \
|
||||||
|
(*(int (*)(pgSurfaceObject *, PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 6))
|
||||||
|
|
||||||
|
#define pgSurface_LockLifetime \
|
||||||
|
(*(PyObject * (*)(PyObject *, PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(surflock, 7))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* EVENT module
|
||||||
|
*/
|
||||||
|
typedef struct pgEventObject pgEventObject;
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_EVENT_INTERNAL
|
||||||
|
#define pgEvent_Type \
|
||||||
|
(*(PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(event, 0))
|
||||||
|
|
||||||
|
#define pgEvent_Check(x) \
|
||||||
|
((x)->ob_type == &pgEvent_Type)
|
||||||
|
|
||||||
|
#define pgEvent_New \
|
||||||
|
(*(PyObject * (*)(SDL_Event *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(event, 1))
|
||||||
|
|
||||||
|
#define pgEvent_New2 \
|
||||||
|
(*(PyObject * (*)(int, PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(event, 2))
|
||||||
|
|
||||||
|
#define pgEvent_FillUserEvent \
|
||||||
|
(*(int (*)(pgEventObject *, SDL_Event *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(event, 3))
|
||||||
|
|
||||||
|
#if PG_API_VERSION == 2
|
||||||
|
#define pg_EnableKeyRepeat \
|
||||||
|
(*(int (*)(int, int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(event, 4))
|
||||||
|
|
||||||
|
#define pg_GetKeyRepeat \
|
||||||
|
(*(void (*)(int *, int *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(event, 5))
|
||||||
|
#endif /* PG_API_VERSION == 2 */
|
||||||
|
|
||||||
|
#define import_pygame_event() IMPORT_PYGAME_MODULE(event)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* RWOBJECT module
|
||||||
|
* the rwobject are only needed for C side work, not accessable from python.
|
||||||
|
*/
|
||||||
|
#ifndef PYGAMEAPI_RWOBJECT_INTERNAL
|
||||||
|
#define pgRWops_FromObject \
|
||||||
|
(*(SDL_RWops * (*)(PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rwobject, 0))
|
||||||
|
|
||||||
|
#define pgRWops_IsFileObject \
|
||||||
|
(*(int (*)(SDL_RWops *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rwobject, 1))
|
||||||
|
|
||||||
|
#define pg_EncodeFilePath \
|
||||||
|
(*(PyObject * (*)(PyObject *, PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rwobject, 2))
|
||||||
|
|
||||||
|
#define pg_EncodeString \
|
||||||
|
(*(PyObject * (*)(PyObject *, const char *, const char *, PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rwobject, 3))
|
||||||
|
|
||||||
|
#define pgRWops_FromFileObject \
|
||||||
|
(*(SDL_RWops * (*)(PyObject *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rwobject, 4))
|
||||||
|
|
||||||
|
#define pgRWops_ReleaseObject \
|
||||||
|
(*(int (*)(SDL_RWops *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(rwobject, 5))
|
||||||
|
|
||||||
|
#define import_pygame_rwobject() IMPORT_PYGAME_MODULE(rwobject)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* PixelArray module
|
||||||
|
*/
|
||||||
|
#ifndef PYGAMEAPI_PIXELARRAY_INTERNAL
|
||||||
|
#define PyPixelArray_Type \
|
||||||
|
((PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(pixelarray, 0))
|
||||||
|
|
||||||
|
#define PyPixelArray_Check(x) \
|
||||||
|
((x)->ob_type == &PyPixelArray_Type)
|
||||||
|
#define PyPixelArray_New \
|
||||||
|
(*(PyObject * (*)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(pixelarray, 1))
|
||||||
|
|
||||||
|
#define import_pygame_pixelarray() IMPORT_PYGAME_MODULE(pixelarray)
|
||||||
|
#endif /* PYGAMEAPI_PIXELARRAY_INTERNAL */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Color module
|
||||||
|
*/
|
||||||
|
typedef struct pgColorObject pgColorObject;
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_COLOR_INTERNAL
|
||||||
|
#define pgColor_Type (*(PyObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(color, 0))
|
||||||
|
|
||||||
|
#define pgColor_Check(x) \
|
||||||
|
((x)->ob_type == &pgColor_Type)
|
||||||
|
#define pgColor_New \
|
||||||
|
(*(PyObject * (*)(Uint8 *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(color, 1))
|
||||||
|
|
||||||
|
#define pgColor_NewLength \
|
||||||
|
(*(PyObject * (*)(Uint8 *, Uint8)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(color, 3))
|
||||||
|
|
||||||
|
#define pg_RGBAFromColorObj \
|
||||||
|
(*(int (*)(PyObject *, Uint8 *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(color, 2))
|
||||||
|
|
||||||
|
#define pg_RGBAFromFuzzyColorObj \
|
||||||
|
(*(int (*)(PyObject *, Uint8 *)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(color, 4))
|
||||||
|
|
||||||
|
#define pgColor_AsArray(x) (((pgColorObject *)x)->data)
|
||||||
|
#define pgColor_NumComponents(x) (((pgColorObject *)x)->len)
|
||||||
|
|
||||||
|
|
||||||
|
#define import_pygame_color() IMPORT_PYGAME_MODULE(color)
|
||||||
|
#endif /* PYGAMEAPI_COLOR_INTERNAL */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Math module
|
||||||
|
*/
|
||||||
|
#ifndef PYGAMEAPI_MATH_INTERNAL
|
||||||
|
#define pgVector2_Check(x) \
|
||||||
|
((x)->ob_type == (PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(math, 0))
|
||||||
|
|
||||||
|
#define pgVector3_Check(x) \
|
||||||
|
((x)->ob_type == (PyTypeObject *) \
|
||||||
|
PYGAMEAPI_GET_SLOT(math, 1))
|
||||||
|
/*
|
||||||
|
#define pgVector2_New \
|
||||||
|
(*(PyObject*(*)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(PyGAME_C_API, 1))
|
||||||
|
*/
|
||||||
|
#define import_pygame_math() IMPORT_PYGAME_MODULE(math)
|
||||||
|
#endif /* PYGAMEAPI_MATH_INTERNAL */
|
||||||
|
|
||||||
|
#define IMPORT_PYGAME_MODULE _IMPORT_PYGAME_MODULE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* base pygame API slots
|
||||||
|
* disable slots with NO_PYGAME_C_API
|
||||||
|
*/
|
||||||
|
#ifdef PYGAME_H
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(base);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(rect);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(cdrom);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(joystick);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(display);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(surface);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(surflock);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(event);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(rwobject);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(pixelarray);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(color);
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(math);
|
||||||
|
#else /* ~PYGAME_H */
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(base);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(rect);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(cdrom);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(joystick);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(display);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(surface);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(surflock);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(event);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(rwobject);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(pixelarray);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(color);
|
||||||
|
PYGAMEAPI_EXTERN_SLOTS(math);
|
||||||
|
#endif /* ~PYGAME_H */
|
||||||
|
|
||||||
|
#endif /* PYGAME_H */
|
149
venv/Include/site/python3.9/pygame/include/bitmask.h
Normal file
149
venv/Include/site/python3.9/pygame/include/bitmask.h
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
/*
|
||||||
|
Bitmask 1.7 - A pixel-perfect collision detection library.
|
||||||
|
|
||||||
|
Copyright (C) 2002-2005 Ulf Ekstrom except for the bitcount
|
||||||
|
function which is copyright (C) Donald W. Gillies, 1992.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
#ifndef BITMASK_H
|
||||||
|
#define BITMASK_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
|
/* Define INLINE for different compilers. If your compiler does not
|
||||||
|
support inlining then there might be a performance hit in
|
||||||
|
bitmask_overlap_area().
|
||||||
|
*/
|
||||||
|
#ifndef INLINE
|
||||||
|
# ifdef __GNUC__
|
||||||
|
# define INLINE inline
|
||||||
|
# else
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
# define INLINE __inline
|
||||||
|
# else
|
||||||
|
# define INLINE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define BITMASK_W unsigned long int
|
||||||
|
#define BITMASK_W_LEN (sizeof(BITMASK_W)*CHAR_BIT)
|
||||||
|
#define BITMASK_W_MASK (BITMASK_W_LEN - 1)
|
||||||
|
#define BITMASK_N(n) ((BITMASK_W)1 << (n))
|
||||||
|
|
||||||
|
typedef struct bitmask
|
||||||
|
{
|
||||||
|
int w,h;
|
||||||
|
BITMASK_W bits[1];
|
||||||
|
} bitmask_t;
|
||||||
|
|
||||||
|
/* Creates a bitmask of width w and height h, where
|
||||||
|
w and h must both be greater than or equal to 0.
|
||||||
|
The mask is automatically cleared when created.
|
||||||
|
*/
|
||||||
|
bitmask_t *bitmask_create(int w, int h);
|
||||||
|
|
||||||
|
/* Frees all the memory allocated by bitmask_create for m. */
|
||||||
|
void bitmask_free(bitmask_t *m);
|
||||||
|
|
||||||
|
/* Create a copy of the given bitmask. */
|
||||||
|
bitmask_t *bitmask_copy(bitmask_t *m);
|
||||||
|
|
||||||
|
/* Clears all bits in the mask */
|
||||||
|
void bitmask_clear(bitmask_t *m);
|
||||||
|
|
||||||
|
/* Sets all bits in the mask */
|
||||||
|
void bitmask_fill(bitmask_t *m);
|
||||||
|
|
||||||
|
/* Flips all bits in the mask */
|
||||||
|
void bitmask_invert(bitmask_t *m);
|
||||||
|
|
||||||
|
/* Counts the bits in the mask */
|
||||||
|
unsigned int bitmask_count(bitmask_t *m);
|
||||||
|
|
||||||
|
/* Returns nonzero if the bit at (x,y) is set. Coordinates start at
|
||||||
|
(0,0) */
|
||||||
|
static INLINE int bitmask_getbit(const bitmask_t *m, int x, int y)
|
||||||
|
{
|
||||||
|
return (m->bits[x/BITMASK_W_LEN*m->h + y] & BITMASK_N(x & BITMASK_W_MASK)) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sets the bit at (x,y) */
|
||||||
|
static INLINE void bitmask_setbit(bitmask_t *m, int x, int y)
|
||||||
|
{
|
||||||
|
m->bits[x/BITMASK_W_LEN*m->h + y] |= BITMASK_N(x & BITMASK_W_MASK);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clears the bit at (x,y) */
|
||||||
|
static INLINE void bitmask_clearbit(bitmask_t *m, int x, int y)
|
||||||
|
{
|
||||||
|
m->bits[x/BITMASK_W_LEN*m->h + y] &= ~BITMASK_N(x & BITMASK_W_MASK);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Returns nonzero if the masks overlap with the given offset.
|
||||||
|
The overlap tests uses the following offsets (which may be negative):
|
||||||
|
|
||||||
|
+----+----------..
|
||||||
|
|A | yoffset
|
||||||
|
| +-+----------..
|
||||||
|
+--|B
|
||||||
|
|xoffset
|
||||||
|
| |
|
||||||
|
: :
|
||||||
|
*/
|
||||||
|
int bitmask_overlap(const bitmask_t *a, const bitmask_t *b, int xoffset, int yoffset);
|
||||||
|
|
||||||
|
/* Like bitmask_overlap(), but will also give a point of intersection.
|
||||||
|
x and y are given in the coordinates of mask a, and are untouched
|
||||||
|
if there is no overlap. */
|
||||||
|
int bitmask_overlap_pos(const bitmask_t *a, const bitmask_t *b,
|
||||||
|
int xoffset, int yoffset, int *x, int *y);
|
||||||
|
|
||||||
|
/* Returns the number of overlapping 'pixels' */
|
||||||
|
int bitmask_overlap_area(const bitmask_t *a, const bitmask_t *b, int xoffset, int yoffset);
|
||||||
|
|
||||||
|
/* Fills a mask with the overlap of two other masks. A bitwise AND. */
|
||||||
|
void bitmask_overlap_mask (const bitmask_t *a, const bitmask_t *b, bitmask_t *c, int xoffset, int yoffset);
|
||||||
|
|
||||||
|
/* Draws mask b onto mask a (bitwise OR). Can be used to compose large
|
||||||
|
(game background?) mask from several submasks, which may speed up
|
||||||
|
the testing. */
|
||||||
|
|
||||||
|
void bitmask_draw(bitmask_t *a, const bitmask_t *b, int xoffset, int yoffset);
|
||||||
|
|
||||||
|
void bitmask_erase(bitmask_t *a, const bitmask_t *b, int xoffset, int yoffset);
|
||||||
|
|
||||||
|
/* Return a new scaled bitmask, with dimensions w*h. The quality of the
|
||||||
|
scaling may not be perfect for all circumstances, but it should
|
||||||
|
be reasonable. If either w or h is 0 a clear 1x1 mask is returned. */
|
||||||
|
bitmask_t *bitmask_scale(const bitmask_t *m, int w, int h);
|
||||||
|
|
||||||
|
/* Convolve b into a, drawing the output into o, shifted by offset. If offset
|
||||||
|
* is 0, then the (x,y) bit will be set if and only if
|
||||||
|
* bitmask_overlap(a, b, x - b->w - 1, y - b->h - 1) returns true.
|
||||||
|
*
|
||||||
|
* Modifies bits o[xoffset ... xoffset + a->w + b->w - 1)
|
||||||
|
* [yoffset ... yoffset + a->h + b->h - 1). */
|
||||||
|
void bitmask_convolve(const bitmask_t *a, const bitmask_t *b, bitmask_t *o, int xoffset, int yoffset);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} /* End of extern "C" { */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
180
venv/Include/site/python3.9/pygame/include/pgcompat.h
Normal file
180
venv/Include/site/python3.9/pygame/include/pgcompat.h
Normal file
@ -0,0 +1,180 @@
|
|||||||
|
/* Python 2.x/3.x and SDL compatibility tools
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if !defined(PGCOMPAT_H)
|
||||||
|
#define PGCOMPAT_H
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
/* Cobjects vanish in Python 3.2; so we will code as though we use capsules */
|
||||||
|
#if defined(Py_CAPSULE_H)
|
||||||
|
#define PG_HAVE_CAPSULE 1
|
||||||
|
#else
|
||||||
|
#define PG_HAVE_CAPSULE 0
|
||||||
|
#endif
|
||||||
|
#if defined(Py_COBJECT_H)
|
||||||
|
#define PG_HAVE_COBJECT 1
|
||||||
|
#else
|
||||||
|
#define PG_HAVE_COBJECT 0
|
||||||
|
#endif
|
||||||
|
#if !PG_HAVE_CAPSULE
|
||||||
|
#define PyCapsule_New(ptr, n, dfn) PyCObject_FromVoidPtr(ptr, dfn)
|
||||||
|
#define PyCapsule_GetPointer(obj, n) PyCObject_AsVoidPtr(obj)
|
||||||
|
#define PyCapsule_CheckExact(obj) PyCObject_Check(obj)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Pygame uses Py_buffer (PEP 3118) to exchange array information internally;
|
||||||
|
* define here as needed.
|
||||||
|
*/
|
||||||
|
#if !defined(PyBUF_SIMPLE)
|
||||||
|
typedef struct bufferinfo {
|
||||||
|
void *buf;
|
||||||
|
PyObject *obj;
|
||||||
|
Py_ssize_t len;
|
||||||
|
Py_ssize_t itemsize;
|
||||||
|
int readonly;
|
||||||
|
int ndim;
|
||||||
|
char *format;
|
||||||
|
Py_ssize_t *shape;
|
||||||
|
Py_ssize_t *strides;
|
||||||
|
Py_ssize_t *suboffsets;
|
||||||
|
void *internal;
|
||||||
|
} Py_buffer;
|
||||||
|
|
||||||
|
/* Flags for getting buffers */
|
||||||
|
#define PyBUF_SIMPLE 0
|
||||||
|
#define PyBUF_WRITABLE 0x0001
|
||||||
|
/* we used to include an E, backwards compatible alias */
|
||||||
|
#define PyBUF_WRITEABLE PyBUF_WRITABLE
|
||||||
|
#define PyBUF_FORMAT 0x0004
|
||||||
|
#define PyBUF_ND 0x0008
|
||||||
|
#define PyBUF_STRIDES (0x0010 | PyBUF_ND)
|
||||||
|
#define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
|
||||||
|
#define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
|
||||||
|
#define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
|
||||||
|
#define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
|
||||||
|
|
||||||
|
#define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE)
|
||||||
|
#define PyBUF_CONTIG_RO (PyBUF_ND)
|
||||||
|
|
||||||
|
#define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
|
||||||
|
#define PyBUF_STRIDED_RO (PyBUF_STRIDES)
|
||||||
|
|
||||||
|
#define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
|
||||||
|
#define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT)
|
||||||
|
|
||||||
|
#define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_WRITABLE | PyBUF_FORMAT)
|
||||||
|
#define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT)
|
||||||
|
|
||||||
|
#define PyBUF_READ 0x100
|
||||||
|
#define PyBUF_WRITE 0x200
|
||||||
|
#define PyBUF_SHADOW 0x400
|
||||||
|
|
||||||
|
typedef int(*getbufferproc)(PyObject *, Py_buffer *, int);
|
||||||
|
typedef void(*releasebufferproc)(Py_buffer *);
|
||||||
|
#endif /* ~defined(PyBUF_SIMPLE) */
|
||||||
|
|
||||||
|
/* define common types where SDL is not included */
|
||||||
|
#ifndef SDL_VERSION_ATLEAST
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
typedef unsigned __int8 uint8_t;
|
||||||
|
typedef unsigned __int32 uint32_t;
|
||||||
|
#else
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
|
typedef uint32_t Uint32;
|
||||||
|
typedef uint8_t Uint8;
|
||||||
|
#endif /* no SDL */
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(SDL_VERSION_ATLEAST)
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_VULKAN
|
||||||
|
#define SDL_WINDOW_VULKAN 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_ALWAYS_ON_TOP
|
||||||
|
#define SDL_WINDOW_ALWAYS_ON_TOP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_SKIP_TASKBAR
|
||||||
|
#define SDL_WINDOW_SKIP_TASKBAR 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_UTILITY
|
||||||
|
#define SDL_WINDOW_UTILITY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_TOOLTIP
|
||||||
|
#define SDL_WINDOW_TOOLTIP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_POPUP_MENU
|
||||||
|
#define SDL_WINDOW_POPUP_MENU 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_INPUT_GRABBED
|
||||||
|
#define SDL_WINDOW_INPUT_GRABBED 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_INPUT_FOCUS
|
||||||
|
#define SDL_WINDOW_INPUT_FOCUS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_MOUSE_FOCUS
|
||||||
|
#define SDL_WINDOW_MOUSE_FOCUS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_FOREIGN
|
||||||
|
#define SDL_WINDOW_FOREIGN 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_ALLOW_HIGHDPI
|
||||||
|
#define SDL_WINDOW_ALLOW_HIGHDPI 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_MOUSE_CAPTURE
|
||||||
|
#define SDL_WINDOW_MOUSE_CAPTURE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_ALWAYS_ON_TOP
|
||||||
|
#define SDL_WINDOW_ALWAYS_ON_TOP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_SKIP_TASKBAR
|
||||||
|
#define SDL_WINDOW_SKIP_TASKBAR 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_UTILITY
|
||||||
|
#define SDL_WINDOW_UTILITY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_TOOLTIP
|
||||||
|
#define SDL_WINDOW_TOOLTIP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_WINDOW_POPUP_MENU
|
||||||
|
#define SDL_WINDOW_POPUP_MENU 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if SDL_VERSION_ATLEAST(2, 0, 4)
|
||||||
|
/* To control the use of:
|
||||||
|
* SDL_AUDIODEVICEADDED
|
||||||
|
* SDL_AUDIODEVICEREMOVED
|
||||||
|
*
|
||||||
|
* Ref: https://wiki.libsdl.org/SDL_EventType
|
||||||
|
* Ref: https://wiki.libsdl.org/SDL_AudioDeviceEvent
|
||||||
|
*/
|
||||||
|
#define SDL2_AUDIODEVICE_SUPPORTED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_MOUSEWHEEL_FLIPPED
|
||||||
|
#define NO_SDL_MOUSEWHEEL_FLIPPED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* defined(SDL_VERSION_ATLEAST) */
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* ~defined(PGCOMPAT_H) */
|
80
venv/Include/site/python3.9/pygame/include/pgimport.h
Normal file
80
venv/Include/site/python3.9/pygame/include/pgimport.h
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
#ifndef PGIMPORT_H
|
||||||
|
#define PGIMPORT_H
|
||||||
|
|
||||||
|
/* Prefix when initializing module */
|
||||||
|
#define MODPREFIX ""
|
||||||
|
/* Prefix when importing module */
|
||||||
|
#define IMPPREFIX "pygame."
|
||||||
|
|
||||||
|
#ifdef __SYMBIAN32__
|
||||||
|
|
||||||
|
/* On Symbian there is no pygame package. The extensions are built-in or in
|
||||||
|
* sys\bin. */
|
||||||
|
#undef MODPREFIX
|
||||||
|
#undef IMPPREFIX
|
||||||
|
#define MODPREFIX "pygame_"
|
||||||
|
#define IMPPREFIX "pygame_"
|
||||||
|
|
||||||
|
#endif /* __SYMBIAN32__ */
|
||||||
|
|
||||||
|
#include "pgcompat.h"
|
||||||
|
|
||||||
|
#define PYGAMEAPI_LOCAL_ENTRY "_PYGAME_C_API"
|
||||||
|
#define PG_CAPSULE_NAME(m) (IMPPREFIX m "." PYGAMEAPI_LOCAL_ENTRY)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* fill API slots defined by PYGAMEAPI_DEFINE_SLOTS/PYGAMEAPI_EXTERN_SLOTS
|
||||||
|
*/
|
||||||
|
#define _IMPORT_PYGAME_MODULE(module) \
|
||||||
|
{ \
|
||||||
|
PyObject *_mod_##module = PyImport_ImportModule(IMPPREFIX #module); \
|
||||||
|
\
|
||||||
|
if (_mod_##module != NULL) { \
|
||||||
|
PyObject *_c_api = \
|
||||||
|
PyObject_GetAttrString(_mod_##module, PYGAMEAPI_LOCAL_ENTRY);\
|
||||||
|
\
|
||||||
|
Py_DECREF(_mod_##module); \
|
||||||
|
if (_c_api != NULL && PyCapsule_CheckExact(_c_api)) { \
|
||||||
|
void **localptr = (void **)PyCapsule_GetPointer( \
|
||||||
|
_c_api, PG_CAPSULE_NAME(#module)); \
|
||||||
|
_PGSLOTS_ ## module = localptr; \
|
||||||
|
} \
|
||||||
|
Py_XDECREF(_c_api); \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define PYGAMEAPI_IS_IMPORTED(module) (_PGSLOTS_ ## module != NULL)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* source file must include one of these in order to use _IMPORT_PYGAME_MODULE.
|
||||||
|
* this is set by import_pygame_*() functions.
|
||||||
|
* disable with NO_PYGAME_C_API
|
||||||
|
*/
|
||||||
|
#define PYGAMEAPI_DEFINE_SLOTS(module) \
|
||||||
|
void ** _PGSLOTS_ ## module = NULL
|
||||||
|
#define PYGAMEAPI_EXTERN_SLOTS(module) \
|
||||||
|
extern void **_PGSLOTS_ ## module
|
||||||
|
#define PYGAMEAPI_GET_SLOT(module, index) \
|
||||||
|
_PGSLOTS_ ## module [(index)]
|
||||||
|
|
||||||
|
/*
|
||||||
|
* disabled API with NO_PYGAME_C_API; do nothing instead
|
||||||
|
*/
|
||||||
|
#ifdef NO_PYGAME_C_API
|
||||||
|
|
||||||
|
#undef PYGAMEAPI_DEFINE_SLOTS
|
||||||
|
#undef PYGAMEAPI_EXTERN_SLOTS
|
||||||
|
|
||||||
|
#define PYGAMEAPI_DEFINE_SLOTS(module)
|
||||||
|
#define PYGAMEAPI_EXTERN_SLOTS(module)
|
||||||
|
|
||||||
|
/* intentionally leave this defined to cause a compiler error *
|
||||||
|
#define PYGAMEAPI_GET_SLOT(api_root, index)
|
||||||
|
#undef PYGAMEAPI_GET_SLOT*/
|
||||||
|
|
||||||
|
#undef _IMPORT_PYGAME_MODULE
|
||||||
|
#define _IMPORT_PYGAME_MODULE(module)
|
||||||
|
|
||||||
|
#endif /* NO_PYGAME_C_API */
|
||||||
|
|
||||||
|
#endif /* ~PGIMPORT_H */
|
91
venv/Include/site/python3.9/pygame/include/pgplatform.h
Normal file
91
venv/Include/site/python3.9/pygame/include/pgplatform.h
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
/* platform/compiler adjustments */
|
||||||
|
#ifndef PG_PLATFORM_H
|
||||||
|
#define PG_PLATFORM_H
|
||||||
|
|
||||||
|
#if defined(HAVE_SNPRINTF) /* defined in python.h (pyerrors.h) and SDL.h \
|
||||||
|
(SDL_config.h) */
|
||||||
|
#undef HAVE_SNPRINTF /* remove GCC redefine warning */
|
||||||
|
#endif /* HAVE_SNPRINTF */
|
||||||
|
|
||||||
|
#ifndef PG_INLINE
|
||||||
|
#if defined(__clang__)
|
||||||
|
#define PG_INLINE __inline__ __attribute__((__unused__))
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#define PG_INLINE __inline__
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#define PG_INLINE __inline
|
||||||
|
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||||
|
#define PG_INLINE inline
|
||||||
|
#else
|
||||||
|
#define PG_INLINE
|
||||||
|
#endif
|
||||||
|
#endif /* ~PG_INLINE */
|
||||||
|
|
||||||
|
// Worth trying this on MSVC/win32 builds to see if provides any speed up
|
||||||
|
#ifndef PG_FORCEINLINE
|
||||||
|
#if defined(__clang__)
|
||||||
|
#define PG_FORCEINLINE __inline__ __attribute__((__unused__))
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#define PG_FORCEINLINE __inline__
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#define PG_FORCEINLINE __forceinline
|
||||||
|
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||||
|
#define PG_FORCEINLINE inline
|
||||||
|
#else
|
||||||
|
#define PG_FORCEINLINE
|
||||||
|
#endif
|
||||||
|
#endif /* ~PG_FORCEINLINE */
|
||||||
|
|
||||||
|
/* This is unconditionally defined in Python.h */
|
||||||
|
#if defined(_POSIX_C_SOURCE)
|
||||||
|
#undef _POSIX_C_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* No signal() */
|
||||||
|
#if defined(__SYMBIAN32__) && defined(HAVE_SIGNAL_H)
|
||||||
|
#undef HAVE_SIGNAL_H
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_SNPRINTF)
|
||||||
|
#undef HAVE_SNPRINTF
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* SDL needs WIN32 */
|
||||||
|
#if !defined(WIN32) && \
|
||||||
|
(defined(MS_WIN32) || defined(_WIN32) || \
|
||||||
|
defined(__WIN32) || defined(__WIN32__) || defined(_WINDOWS))
|
||||||
|
#define WIN32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Commenting out SSE4_2 stuff because it does not do runtime detection.
|
||||||
|
#ifndef PG_TARGET_SSE4_2
|
||||||
|
#if defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 9) || __GNUC__ >= 5 ))
|
||||||
|
//The old gcc 4.8 on centos used by manylinux1 does not seem to get sse4.2 intrinsics
|
||||||
|
#define PG_FUNCTION_TARGET_SSE4_2 __attribute__((target("sse4.2")))
|
||||||
|
// No else; we define the fallback later
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
*/
|
||||||
|
/* ~PG_TARGET_SSE4_2 */
|
||||||
|
|
||||||
|
/*
|
||||||
|
#ifdef PG_FUNCTION_TARGET_SSE4_2
|
||||||
|
#if !defined(__SSE4_2__) && !defined(PG_COMPILE_SSE4_2)
|
||||||
|
#if defined(__x86_64__) || defined(__i386__)
|
||||||
|
#define PG_COMPILE_SSE4_2 1
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
*/
|
||||||
|
/* ~PG_TARGET_SSE4_2 */
|
||||||
|
|
||||||
|
/* Fallback definition of target attribute */
|
||||||
|
#ifndef PG_FUNCTION_TARGET_SSE4_2
|
||||||
|
#define PG_FUNCTION_TARGET_SSE4_2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef PG_COMPILE_SSE4_2
|
||||||
|
#define PG_COMPILE_SSE4_2 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ~PG_PLATFORM_H */
|
34
venv/Include/site/python3.9/pygame/include/pygame.h
Normal file
34
venv/Include/site/python3.9/pygame/include/pygame.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* To allow the Pygame C api to be globally shared by all code within an
|
||||||
|
* extension module built from multiple C files, only include the pygame.h
|
||||||
|
* header within the top level C file, the one which calls the
|
||||||
|
* 'import_pygame_*' macros. All other C source files of the module should
|
||||||
|
* include _pygame.h instead.
|
||||||
|
*/
|
||||||
|
#ifndef PYGAME_H
|
||||||
|
#define PYGAME_H
|
||||||
|
|
||||||
|
#include "_pygame.h"
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
Copyright (C) 2007 Rene Dudfield, Richard Goedeken
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Bufferproxy module C api. */
|
||||||
|
#if !defined(PG_BUFPROXY_HEADER)
|
||||||
|
#define PG_BUFPROXY_HEADER
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
typedef PyObject *(*_pgbufproxy_new_t)(PyObject *, getbufferproc);
|
||||||
|
typedef PyObject *(*_pgbufproxy_get_obj_t)(PyObject *);
|
||||||
|
typedef int (*_pgbufproxy_trip_t)(PyObject *);
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_BUFPROXY_INTERNAL
|
||||||
|
|
||||||
|
#include "pgimport.h"
|
||||||
|
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(bufferproxy);
|
||||||
|
|
||||||
|
#define pgBufproxy_Type (*(PyTypeObject*) \
|
||||||
|
PYGAMEAPI_GET_SLOT(bufferproxy, 0) )
|
||||||
|
|
||||||
|
#define pgBufproxy_Check(x) ((x)->ob_type == &pgBufproxy_Type)
|
||||||
|
|
||||||
|
#define pgBufproxy_New (*(_pgbufproxy_new_t) \
|
||||||
|
PYGAMEAPI_GET_SLOT(bufferproxy, 1))
|
||||||
|
|
||||||
|
#define pgBufproxy_GetParent \
|
||||||
|
(*(_pgbufproxy_get_obj_t) \
|
||||||
|
PYGAMEAPI_GET_SLOT(bufferproxy, 2))
|
||||||
|
|
||||||
|
#define pgBufproxy_Trip (*(_pgbufproxy_trip_t) \
|
||||||
|
PYGAMEAPI_GET_SLOT(bufferproxy, 3))
|
||||||
|
|
||||||
|
#define import_pygame_bufferproxy() _IMPORT_PYGAME_MODULE(bufferproxy)
|
||||||
|
|
||||||
|
#endif /* ~PYGAMEAPI_BUFPROXY_INTERNAL */
|
||||||
|
|
||||||
|
#endif /* ~defined(PG_BUFPROXY_HEADER) */
|
53
venv/Include/site/python3.9/pygame/include/pygame_font.h
Normal file
53
venv/Include/site/python3.9/pygame/include/pygame_font.h
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
#include "pgplatform.h"
|
||||||
|
|
||||||
|
struct TTF_Font;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD
|
||||||
|
TTF_Font* font;
|
||||||
|
PyObject* weakreflist;
|
||||||
|
} PyFontObject;
|
||||||
|
#define PyFont_AsFont(x) (((PyFontObject*)x)->font)
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_FONT_INTERNAL
|
||||||
|
|
||||||
|
#include "pgimport.h"
|
||||||
|
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(font);
|
||||||
|
|
||||||
|
#define PyFont_Type (*(PyTypeObject*) \
|
||||||
|
PYGAMEAPI_GET_SLOT(font, 0))
|
||||||
|
#define PyFont_Check(x) ((x)->ob_type == &PyFont_Type)
|
||||||
|
|
||||||
|
#define PyFont_New (*(PyObject*(*)(TTF_Font*))\
|
||||||
|
PYGAMEAPI_GET_SLOT(font, 1))
|
||||||
|
|
||||||
|
/*slot 2 taken by FONT_INIT_CHECK*/
|
||||||
|
|
||||||
|
#define import_pygame_font() _IMPORT_PYGAME_MODULE(font)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
43
venv/Include/site/python3.9/pygame/include/pygame_freetype.h
Normal file
43
venv/Include/site/python3.9/pygame/include/pygame_freetype.h
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2009 Vicent Marti
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
*/
|
||||||
|
#ifndef PYGAME_FREETYPE_H_
|
||||||
|
#define PYGAME_FREETYPE_H_
|
||||||
|
|
||||||
|
#include "pgplatform.h"
|
||||||
|
#include "pgimport.h"
|
||||||
|
#include "pgcompat.h"
|
||||||
|
|
||||||
|
#ifndef PYGAME_FREETYPE_INTERNAL
|
||||||
|
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(_freetype);
|
||||||
|
|
||||||
|
#define pgFont_Type (*(PyTypeObject*) \
|
||||||
|
PYGAMEAPI_GET_SLOT(_freetype, 0))
|
||||||
|
|
||||||
|
#define pgFont_Check(x) ((x)->ob_type == &pgFont_Type)
|
||||||
|
|
||||||
|
#define pgFont_New (*(PyObject*(*)(const char*, long)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(_freetype, 1))
|
||||||
|
|
||||||
|
#define import_pygame_freetype() _IMPORT_PYGAME_MODULE(_freetype)
|
||||||
|
|
||||||
|
#endif /* PYGAME_FREETYPE_INTERNAL */
|
||||||
|
|
||||||
|
#endif /* PYGAME_FREETYPE_H_ */
|
47
venv/Include/site/python3.9/pygame/include/pygame_mask.h
Normal file
47
venv/Include/site/python3.9/pygame/include/pygame_mask.h
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef PGMASK_H
|
||||||
|
#define PGMASK_H
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
#include "bitmask.h"
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD
|
||||||
|
bitmask_t *mask;
|
||||||
|
void *bufdata;
|
||||||
|
} pgMaskObject;
|
||||||
|
|
||||||
|
#define pgMask_AsBitmap(x) (((pgMaskObject*)x)->mask)
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_MASK_INTERNAL
|
||||||
|
|
||||||
|
#include "pgimport.h"
|
||||||
|
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(mask);
|
||||||
|
|
||||||
|
#define pgMask_Type (*(PyTypeObject*) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mask, 0))
|
||||||
|
#define pgMask_Check(x) ((x)->ob_type == &pgMask_Type)
|
||||||
|
|
||||||
|
#define import_pygame_mask() _IMPORT_PYGAME_MODULE(mask)
|
||||||
|
|
||||||
|
#endif /* ~PYGAMEAPI_MASK_INTERNAL */
|
||||||
|
|
||||||
|
#endif /* ~PGMASK_H */
|
82
venv/Include/site/python3.9/pygame/include/pygame_mixer.h
Normal file
82
venv/Include/site/python3.9/pygame/include/pygame_mixer.h
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef PGMIXER_H
|
||||||
|
#define PGMIXER_H
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
#include <structmember.h>
|
||||||
|
|
||||||
|
#include "pgcompat.h"
|
||||||
|
|
||||||
|
struct Mix_Chunk;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD
|
||||||
|
Mix_Chunk *chunk;
|
||||||
|
Uint8 *mem;
|
||||||
|
PyObject *weakreflist;
|
||||||
|
} pgSoundObject;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
PyObject_HEAD
|
||||||
|
int chan;
|
||||||
|
} pgChannelObject;
|
||||||
|
|
||||||
|
#define pgSound_AsChunk(x) (((pgSoundObject*)x)->chunk)
|
||||||
|
#define pgChannel_AsInt(x) (((pgChannelObject*)x)->chan)
|
||||||
|
|
||||||
|
#include "pgimport.h"
|
||||||
|
|
||||||
|
#ifndef PYGAMEAPI_MIXER_INTERNAL
|
||||||
|
|
||||||
|
PYGAMEAPI_DEFINE_SLOTS(mixer);
|
||||||
|
|
||||||
|
#define pgSound_Type (*(PyTypeObject*) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mixer, 0))
|
||||||
|
|
||||||
|
#define pgSound_Check(x) ((x)->ob_type == &pgSound_Type)
|
||||||
|
|
||||||
|
#define pgSound_New (*(PyObject*(*)(Mix_Chunk*)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mixer, 1))
|
||||||
|
|
||||||
|
#define pgSound_Play (*(PyObject*(*)(PyObject*, PyObject*)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mixer, 2))
|
||||||
|
|
||||||
|
#define pgChannel_Type (*(PyTypeObject*) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mixer, 3))
|
||||||
|
#define pgChannel_Check(x) ((x)->ob_type == &pgChannel_Type)
|
||||||
|
|
||||||
|
#define pgChannel_New (*(PyObject*(*)(int)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mixer, 4))
|
||||||
|
|
||||||
|
#define pgMixer_AutoInit (*(PyObject*(*)(PyObject*, PyObject*)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mixer, 5))
|
||||||
|
|
||||||
|
#define pgMixer_AutoQuit (*(void(*)(void)) \
|
||||||
|
PYGAMEAPI_GET_SLOT(mixer, 6))
|
||||||
|
|
||||||
|
#define import_pygame_mixer() _IMPORT_PYGAME_MODULE(mixer)
|
||||||
|
|
||||||
|
#endif /* PYGAMEAPI_MIXER_INTERNAL */
|
||||||
|
|
||||||
|
#endif /* ~PGMIXER_H */
|
3676
venv/Include/site/python3.9/pygame/include/sse2neon.h
Normal file
3676
venv/Include/site/python3.9/pygame/include/sse2neon.h
Normal file
File diff suppressed because it is too large
Load Diff
7
venv/Include/site/python3.9/pygame/mask.h
Normal file
7
venv/Include/site/python3.9/pygame/mask.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#ifndef PGMASK_INTERNAL_H
|
||||||
|
#define PGMASK_INTERNAL_H
|
||||||
|
|
||||||
|
#include "include/pygame_mask.h"
|
||||||
|
#define PYGAMEAPI_MASK_NUMSLOTS 1
|
||||||
|
|
||||||
|
#endif /* ~PGMASK_INTERNAL_H */
|
14
venv/Include/site/python3.9/pygame/mixer.h
Normal file
14
venv/Include/site/python3.9/pygame/mixer.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#ifndef MIXER_INTERNAL_H
|
||||||
|
#define MIXER_INTERNAL_H
|
||||||
|
|
||||||
|
#include <SDL_mixer.h>
|
||||||
|
|
||||||
|
/* test mixer initializations */
|
||||||
|
#define MIXER_INIT_CHECK() \
|
||||||
|
if(!SDL_WasInit(SDL_INIT_AUDIO)) \
|
||||||
|
return RAISE(pgExc_SDLError, "mixer not initialized")
|
||||||
|
|
||||||
|
#define PYGAMEAPI_MIXER_NUMSLOTS 7
|
||||||
|
#include "include/pygame_mixer.h"
|
||||||
|
|
||||||
|
#endif /* ~MIXER_INTERNAL_H */
|
123
venv/Include/site/python3.9/pygame/palette.h
Normal file
123
venv/Include/site/python3.9/pygame/palette.h
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef PALETTE_H
|
||||||
|
#define PALETTE_H
|
||||||
|
|
||||||
|
#include <SDL.h>
|
||||||
|
|
||||||
|
/* SDL 2 does not assign a default palette color scheme to a new 8 bit
|
||||||
|
* surface. Instead, the palette is set all white. This defines the SDL 1.2
|
||||||
|
* default palette.
|
||||||
|
*/
|
||||||
|
static const SDL_Color default_palette_colors[] = {
|
||||||
|
{0, 0, 0, 255}, {0, 0, 85, 255}, {0, 0, 170, 255},
|
||||||
|
{0, 0, 255, 255}, {0, 36, 0, 255}, {0, 36, 85, 255},
|
||||||
|
{0, 36, 170, 255}, {0, 36, 255, 255}, {0, 73, 0, 255},
|
||||||
|
{0, 73, 85, 255}, {0, 73, 170, 255}, {0, 73, 255, 255},
|
||||||
|
{0, 109, 0, 255}, {0, 109, 85, 255}, {0, 109, 170, 255},
|
||||||
|
{0, 109, 255, 255}, {0, 146, 0, 255}, {0, 146, 85, 255},
|
||||||
|
{0, 146, 170, 255}, {0, 146, 255, 255}, {0, 182, 0, 255},
|
||||||
|
{0, 182, 85, 255}, {0, 182, 170, 255}, {0, 182, 255, 255},
|
||||||
|
{0, 219, 0, 255}, {0, 219, 85, 255}, {0, 219, 170, 255},
|
||||||
|
{0, 219, 255, 255}, {0, 255, 0, 255}, {0, 255, 85, 255},
|
||||||
|
{0, 255, 170, 255}, {0, 255, 255, 255}, {85, 0, 0, 255},
|
||||||
|
{85, 0, 85, 255}, {85, 0, 170, 255}, {85, 0, 255, 255},
|
||||||
|
{85, 36, 0, 255}, {85, 36, 85, 255}, {85, 36, 170, 255},
|
||||||
|
{85, 36, 255, 255}, {85, 73, 0, 255}, {85, 73, 85, 255},
|
||||||
|
{85, 73, 170, 255}, {85, 73, 255, 255}, {85, 109, 0, 255},
|
||||||
|
{85, 109, 85, 255}, {85, 109, 170, 255}, {85, 109, 255, 255},
|
||||||
|
{85, 146, 0, 255}, {85, 146, 85, 255}, {85, 146, 170, 255},
|
||||||
|
{85, 146, 255, 255}, {85, 182, 0, 255}, {85, 182, 85, 255},
|
||||||
|
{85, 182, 170, 255}, {85, 182, 255, 255}, {85, 219, 0, 255},
|
||||||
|
{85, 219, 85, 255}, {85, 219, 170, 255}, {85, 219, 255, 255},
|
||||||
|
{85, 255, 0, 255}, {85, 255, 85, 255}, {85, 255, 170, 255},
|
||||||
|
{85, 255, 255, 255}, {170, 0, 0, 255}, {170, 0, 85, 255},
|
||||||
|
{170, 0, 170, 255}, {170, 0, 255, 255}, {170, 36, 0, 255},
|
||||||
|
{170, 36, 85, 255}, {170, 36, 170, 255}, {170, 36, 255, 255},
|
||||||
|
{170, 73, 0, 255}, {170, 73, 85, 255}, {170, 73, 170, 255},
|
||||||
|
{170, 73, 255, 255}, {170, 109, 0, 255}, {170, 109, 85, 255},
|
||||||
|
{170, 109, 170, 255}, {170, 109, 255, 255}, {170, 146, 0, 255},
|
||||||
|
{170, 146, 85, 255}, {170, 146, 170, 255}, {170, 146, 255, 255},
|
||||||
|
{170, 182, 0, 255}, {170, 182, 85, 255}, {170, 182, 170, 255},
|
||||||
|
{170, 182, 255, 255}, {170, 219, 0, 255}, {170, 219, 85, 255},
|
||||||
|
{170, 219, 170, 255}, {170, 219, 255, 255}, {170, 255, 0, 255},
|
||||||
|
{170, 255, 85, 255}, {170, 255, 170, 255}, {170, 255, 255, 255},
|
||||||
|
{255, 0, 0, 255}, {255, 0, 85, 255}, {255, 0, 170, 255},
|
||||||
|
{255, 0, 255, 255}, {255, 36, 0, 255}, {255, 36, 85, 255},
|
||||||
|
{255, 36, 170, 255}, {255, 36, 255, 255}, {255, 73, 0, 255},
|
||||||
|
{255, 73, 85, 255}, {255, 73, 170, 255}, {255, 73, 255, 255},
|
||||||
|
{255, 109, 0, 255}, {255, 109, 85, 255}, {255, 109, 170, 255},
|
||||||
|
{255, 109, 255, 255}, {255, 146, 0, 255}, {255, 146, 85, 255},
|
||||||
|
{255, 146, 170, 255}, {255, 146, 255, 255}, {255, 182, 0, 255},
|
||||||
|
{255, 182, 85, 255}, {255, 182, 170, 255}, {255, 182, 255, 255},
|
||||||
|
{255, 219, 0, 255}, {255, 219, 85, 255}, {255, 219, 170, 255},
|
||||||
|
{255, 219, 255, 255}, {255, 255, 0, 255}, {255, 255, 85, 255},
|
||||||
|
{255, 255, 170, 255}, {255, 255, 255, 255}, {0, 0, 0, 255},
|
||||||
|
{0, 0, 85, 255}, {0, 0, 170, 255}, {0, 0, 255, 255},
|
||||||
|
{0, 36, 0, 255}, {0, 36, 85, 255}, {0, 36, 170, 255},
|
||||||
|
{0, 36, 255, 255}, {0, 73, 0, 255}, {0, 73, 85, 255},
|
||||||
|
{0, 73, 170, 255}, {0, 73, 255, 255}, {0, 109, 0, 255},
|
||||||
|
{0, 109, 85, 255}, {0, 109, 170, 255}, {0, 109, 255, 255},
|
||||||
|
{0, 146, 0, 255}, {0, 146, 85, 255}, {0, 146, 170, 255},
|
||||||
|
{0, 146, 255, 255}, {0, 182, 0, 255}, {0, 182, 85, 255},
|
||||||
|
{0, 182, 170, 255}, {0, 182, 255, 255}, {0, 219, 0, 255},
|
||||||
|
{0, 219, 85, 255}, {0, 219, 170, 255}, {0, 219, 255, 255},
|
||||||
|
{0, 255, 0, 255}, {0, 255, 85, 255}, {0, 255, 170, 255},
|
||||||
|
{0, 255, 255, 255}, {85, 0, 0, 255}, {85, 0, 85, 255},
|
||||||
|
{85, 0, 170, 255}, {85, 0, 255, 255}, {85, 36, 0, 255},
|
||||||
|
{85, 36, 85, 255}, {85, 36, 170, 255}, {85, 36, 255, 255},
|
||||||
|
{85, 73, 0, 255}, {85, 73, 85, 255}, {85, 73, 170, 255},
|
||||||
|
{85, 73, 255, 255}, {85, 109, 0, 255}, {85, 109, 85, 255},
|
||||||
|
{85, 109, 170, 255}, {85, 109, 255, 255}, {85, 146, 0, 255},
|
||||||
|
{85, 146, 85, 255}, {85, 146, 170, 255}, {85, 146, 255, 255},
|
||||||
|
{85, 182, 0, 255}, {85, 182, 85, 255}, {85, 182, 170, 255},
|
||||||
|
{85, 182, 255, 255}, {85, 219, 0, 255}, {85, 219, 85, 255},
|
||||||
|
{85, 219, 170, 255}, {85, 219, 255, 255}, {85, 255, 0, 255},
|
||||||
|
{85, 255, 85, 255}, {85, 255, 170, 255}, {85, 255, 255, 255},
|
||||||
|
{170, 0, 0, 255}, {170, 0, 85, 255}, {170, 0, 170, 255},
|
||||||
|
{170, 0, 255, 255}, {170, 36, 0, 255}, {170, 36, 85, 255},
|
||||||
|
{170, 36, 170, 255}, {170, 36, 255, 255}, {170, 73, 0, 255},
|
||||||
|
{170, 73, 85, 255}, {170, 73, 170, 255}, {170, 73, 255, 255},
|
||||||
|
{170, 109, 0, 255}, {170, 109, 85, 255}, {170, 109, 170, 255},
|
||||||
|
{170, 109, 255, 255}, {170, 146, 0, 255}, {170, 146, 85, 255},
|
||||||
|
{170, 146, 170, 255}, {170, 146, 255, 255}, {170, 182, 0, 255},
|
||||||
|
{170, 182, 85, 255}, {170, 182, 170, 255}, {170, 182, 255, 255},
|
||||||
|
{170, 219, 0, 255}, {170, 219, 85, 255}, {170, 219, 170, 255},
|
||||||
|
{170, 219, 255, 255}, {170, 255, 0, 255}, {170, 255, 85, 255},
|
||||||
|
{170, 255, 170, 255}, {170, 255, 255, 255}, {255, 0, 0, 255},
|
||||||
|
{255, 0, 85, 255}, {255, 0, 170, 255}, {255, 0, 255, 255},
|
||||||
|
{255, 36, 0, 255}, {255, 36, 85, 255}, {255, 36, 170, 255},
|
||||||
|
{255, 36, 255, 255}, {255, 73, 0, 255}, {255, 73, 85, 255},
|
||||||
|
{255, 73, 170, 255}, {255, 73, 255, 255}, {255, 109, 0, 255},
|
||||||
|
{255, 109, 85, 255}, {255, 109, 170, 255}, {255, 109, 255, 255},
|
||||||
|
{255, 146, 0, 255}, {255, 146, 85, 255}, {255, 146, 170, 255},
|
||||||
|
{255, 146, 255, 255}, {255, 182, 0, 255}, {255, 182, 85, 255},
|
||||||
|
{255, 182, 170, 255}, {255, 182, 255, 255}, {255, 219, 0, 255},
|
||||||
|
{255, 219, 85, 255}, {255, 219, 170, 255}, {255, 219, 255, 255},
|
||||||
|
{255, 255, 0, 255}, {255, 255, 85, 255}, {255, 255, 170, 255},
|
||||||
|
{255, 255, 255, 255}};
|
||||||
|
|
||||||
|
static const int default_palette_size =
|
||||||
|
(int)(sizeof(default_palette_colors) / sizeof(SDL_Color));
|
||||||
|
|
||||||
|
#endif
|
26
venv/Include/site/python3.9/pygame/pgarrinter.h
Normal file
26
venv/Include/site/python3.9/pygame/pgarrinter.h
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
/* array structure interface version 3 declarations */
|
||||||
|
|
||||||
|
#if !defined(PG_ARRAYINTER_HEADER)
|
||||||
|
#define PG_ARRAYINTER_HEADER
|
||||||
|
|
||||||
|
static const int PAI_CONTIGUOUS = 0x01;
|
||||||
|
static const int PAI_FORTRAN = 0x02;
|
||||||
|
static const int PAI_ALIGNED = 0x100;
|
||||||
|
static const int PAI_NOTSWAPPED = 0x200;
|
||||||
|
static const int PAI_WRITEABLE = 0x400;
|
||||||
|
static const int PAI_ARR_HAS_DESCR = 0x800;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int two; /* contains the integer 2 -- simple sanity check */
|
||||||
|
int nd; /* number of dimensions */
|
||||||
|
char typekind; /* kind in array -- character code of typestr */
|
||||||
|
int itemsize; /* size of each element */
|
||||||
|
int flags; /* flags indicating how the data should be */
|
||||||
|
/* interpreted */
|
||||||
|
Py_intptr_t *shape; /* A length-nd array of shape information */
|
||||||
|
Py_intptr_t *strides; /* A length-nd array of stride information */
|
||||||
|
void *data; /* A pointer to the first element of the array */
|
||||||
|
PyObject *descr; /* NULL or a data-description */
|
||||||
|
} PyArrayInterface;
|
||||||
|
|
||||||
|
#endif
|
7
venv/Include/site/python3.9/pygame/pgbufferproxy.h
Normal file
7
venv/Include/site/python3.9/pygame/pgbufferproxy.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#ifndef PG_BUFPROXY_INTERNAL_H
|
||||||
|
#define PG_BUFPROXY_INTERNAL_H
|
||||||
|
|
||||||
|
#include "include/pygame_bufferproxy.h"
|
||||||
|
#define PYGAMEAPI_BUFPROXY_NUMSLOTS 4
|
||||||
|
|
||||||
|
#endif /* ~PG_BUFPROXY_INTERNAL_H */
|
207
venv/Include/site/python3.9/pygame/pgcompat.h
Normal file
207
venv/Include/site/python3.9/pygame/pgcompat.h
Normal file
@ -0,0 +1,207 @@
|
|||||||
|
/* Python 2.x/3.x compatibility tools (internal)
|
||||||
|
*/
|
||||||
|
#ifndef PGCOMPAT_INTERNAL_H
|
||||||
|
#define PGCOMPAT_INTERNAL_H
|
||||||
|
|
||||||
|
#include "include/pgcompat.h"
|
||||||
|
|
||||||
|
#if PY_MAJOR_VERSION >= 3
|
||||||
|
|
||||||
|
#define PY3 1
|
||||||
|
|
||||||
|
/* Define some aliases for the removed PyInt_* functions */
|
||||||
|
#define PyInt_Check(op) PyLong_Check(op)
|
||||||
|
#define PyInt_FromString PyLong_FromString
|
||||||
|
#define PyInt_FromLong PyLong_FromLong
|
||||||
|
#define PyInt_FromSize_t PyLong_FromSize_t
|
||||||
|
#define PyInt_FromSsize_t PyLong_FromSsize_t
|
||||||
|
#define PyInt_AsLong PyLong_AsLong
|
||||||
|
#define PyInt_AsSsize_t PyLong_AsSsize_t
|
||||||
|
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
|
||||||
|
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
|
||||||
|
#define PyInt_AS_LONG PyLong_AS_LONG
|
||||||
|
#define PyNumber_Int PyNumber_Long
|
||||||
|
/* Int and Long are identical in Py3 so only check one */
|
||||||
|
#define INT_CHECK(op) PyLong_Check(op)
|
||||||
|
|
||||||
|
/* Weakrefs flags changed in 3.x */
|
||||||
|
#define Py_TPFLAGS_HAVE_WEAKREFS 0
|
||||||
|
|
||||||
|
/* Module init function returns new module instance. */
|
||||||
|
#define MODINIT_RETURN(x) return x
|
||||||
|
#define MODINIT_DEFINE(mod_name) PyMODINIT_FUNC PyInit_##mod_name (void)
|
||||||
|
#define DECREF_MOD(mod) Py_DECREF (mod)
|
||||||
|
|
||||||
|
/* Text interface. Use unicode strings. */
|
||||||
|
#define Text_Type PyUnicode_Type
|
||||||
|
#define Text_Check PyUnicode_Check
|
||||||
|
|
||||||
|
#ifndef PYPY_VERSION
|
||||||
|
#define Text_FromLocale(s) PyUnicode_DecodeLocale((s), "strict")
|
||||||
|
#else /* PYPY_VERSION */
|
||||||
|
/* workaround: missing function for pypy */
|
||||||
|
#define Text_FromLocale PyUnicode_FromString
|
||||||
|
#endif /* PYPY_VERSION */
|
||||||
|
|
||||||
|
#define Text_FromUTF8 PyUnicode_FromString
|
||||||
|
#define Text_FromUTF8AndSize PyUnicode_FromStringAndSize
|
||||||
|
#define Text_FromFormat PyUnicode_FromFormat
|
||||||
|
#define Text_GetSize PyUnicode_GetSize
|
||||||
|
#define Text_GET_SIZE PyUnicode_GET_SIZE
|
||||||
|
|
||||||
|
/* Binary interface. Use bytes. */
|
||||||
|
#define Bytes_Type PyBytes_Type
|
||||||
|
#define Bytes_Check PyBytes_Check
|
||||||
|
#define Bytes_Size PyBytes_Size
|
||||||
|
#define Bytes_AsString PyBytes_AsString
|
||||||
|
#define Bytes_AsStringAndSize PyBytes_AsStringAndSize
|
||||||
|
#define Bytes_FromStringAndSize PyBytes_FromStringAndSize
|
||||||
|
#define Bytes_FromFormat PyBytes_FromFormat
|
||||||
|
#define Bytes_AS_STRING PyBytes_AS_STRING
|
||||||
|
#define Bytes_GET_SIZE PyBytes_GET_SIZE
|
||||||
|
#define Bytes_AsDecodeObject PyBytes_AsDecodedObject
|
||||||
|
|
||||||
|
#define Object_Unicode PyObject_Str
|
||||||
|
|
||||||
|
#define IsTextObj(x) (PyUnicode_Check(x) || PyBytes_Check(x))
|
||||||
|
|
||||||
|
/* Renamed builtins */
|
||||||
|
#define BUILTINS_MODULE "builtins"
|
||||||
|
#define BUILTINS_UNICODE "str"
|
||||||
|
#define BUILTINS_UNICHR "chr"
|
||||||
|
|
||||||
|
/* Defaults for unicode file path encoding */
|
||||||
|
#define UNICODE_DEF_FS_CODEC Py_FileSystemDefaultEncoding
|
||||||
|
#if defined(MS_WIN32)
|
||||||
|
#define UNICODE_DEF_FS_ERROR "replace"
|
||||||
|
#else
|
||||||
|
#define UNICODE_DEF_FS_ERROR "surrogateescape"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else /* #if PY_MAJOR_VERSION >= 3 */
|
||||||
|
|
||||||
|
#define PY3 0
|
||||||
|
|
||||||
|
/* Check both Int and Long in PY2 */
|
||||||
|
#define INT_CHECK(op) (PyInt_Check(op) || PyLong_Check(op))
|
||||||
|
|
||||||
|
/* Module init function returns nothing. */
|
||||||
|
#define MODINIT_RETURN(x) return
|
||||||
|
#define MODINIT_DEFINE(mod_name) PyMODINIT_FUNC init##mod_name (void)
|
||||||
|
#define DECREF_MOD(mod)
|
||||||
|
|
||||||
|
/* Text interface. Use ascii strings. */
|
||||||
|
#define Text_Type PyString_Type
|
||||||
|
#define Text_Check PyString_Check
|
||||||
|
#define Text_FromLocale PyString_FromString
|
||||||
|
#define Text_FromUTF8 PyString_FromString
|
||||||
|
#define Text_FromUTF8AndSize PyString_FromStringAndSize
|
||||||
|
#define Text_FromFormat PyString_FromFormat
|
||||||
|
#define Text_GetSize PyString_GetSize
|
||||||
|
#define Text_GET_SIZE PyString_GET_SIZE
|
||||||
|
|
||||||
|
/* Binary interface. Use ascii strings. */
|
||||||
|
#define Bytes_Type PyString_Type
|
||||||
|
#define Bytes_Check PyString_Check
|
||||||
|
#define Bytes_Size PyString_Size
|
||||||
|
#define Bytes_AsString PyString_AsString
|
||||||
|
#define Bytes_AsStringAndSize PyString_AsStringAndSize
|
||||||
|
#define Bytes_FromStringAndSize PyString_FromStringAndSize
|
||||||
|
#define Bytes_FromFormat PyString_FromFormat
|
||||||
|
#define Bytes_AS_STRING PyString_AS_STRING
|
||||||
|
#define Bytes_GET_SIZE PyString_GET_SIZE
|
||||||
|
#define Bytes_AsDecodedObject PyString_AsDecodedObject
|
||||||
|
|
||||||
|
#define Object_Unicode PyObject_Unicode
|
||||||
|
|
||||||
|
/* Renamed builtins */
|
||||||
|
#define BUILTINS_MODULE "__builtin__"
|
||||||
|
#define BUILTINS_UNICODE "unicode"
|
||||||
|
#define BUILTINS_UNICHR "unichr"
|
||||||
|
|
||||||
|
/* Defaults for unicode file path encoding */
|
||||||
|
#define UNICODE_DEF_FS_CODEC Py_FileSystemDefaultEncoding
|
||||||
|
#define UNICODE_DEF_FS_ERROR "strict"
|
||||||
|
|
||||||
|
#endif /* #if PY_MAJOR_VERSION >= 3 */
|
||||||
|
|
||||||
|
#define PY2 (!PY3)
|
||||||
|
|
||||||
|
#define MODINIT_ERROR MODINIT_RETURN (NULL)
|
||||||
|
|
||||||
|
/* Module state. These macros are used to define per-module macros.
|
||||||
|
* v - global state variable (Python 2.x)
|
||||||
|
* s - global state structure (Python 3.x)
|
||||||
|
*/
|
||||||
|
#define PY2_GETSTATE(v) (&(v))
|
||||||
|
#define PY3_GETSTATE(s, m) ((struct s *) PyModule_GetState (m))
|
||||||
|
|
||||||
|
/* Pep 3123: Making PyObject_HEAD conform to standard C */
|
||||||
|
#if !defined(Py_TYPE)
|
||||||
|
#define Py_TYPE(o) (((PyObject *)(o))->ob_type)
|
||||||
|
#define Py_REFCNT(o) (((PyObject *)(o))->ob_refcnt)
|
||||||
|
#define Py_SIZE(o) (((PyVarObject *)(o))->ob_size)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Encode a unicode file path */
|
||||||
|
#define Unicode_AsEncodedPath(u) \
|
||||||
|
PyUnicode_AsEncodedString ((u), UNICODE_DEF_FS_CODEC, UNICODE_DEF_FS_ERROR)
|
||||||
|
|
||||||
|
#define RELATIVE_MODULE(m) ("." m)
|
||||||
|
|
||||||
|
#define HAVE_OLD_BUFPROTO PY2
|
||||||
|
|
||||||
|
#if !defined(PG_ENABLE_OLDBUF) /* allow for command line override */
|
||||||
|
#if HAVE_OLD_BUFPROTO
|
||||||
|
#define PG_ENABLE_OLDBUF 1
|
||||||
|
#else
|
||||||
|
#define PG_ENABLE_OLDBUF 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
|
||||||
|
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef Py_TPFLAGS_HAVE_CLASS
|
||||||
|
#define Py_TPFLAGS_HAVE_CLASS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef Py_TPFLAGS_CHECKTYPES
|
||||||
|
#define Py_TPFLAGS_CHECKTYPES 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX >= 0x03020000
|
||||||
|
#define Slice_GET_INDICES_EX(slice, length, start, stop, step, slicelength) \
|
||||||
|
PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength)
|
||||||
|
#else
|
||||||
|
#define Slice_GET_INDICES_EX(slice, length, start, stop, step, slicelength) \
|
||||||
|
PySlice_GetIndicesEx((PySliceObject *)(slice), length, \
|
||||||
|
start, stop, step, slicelength)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(SDL_VERSION_ATLEAST)
|
||||||
|
#if (SDL_VERSION_ATLEAST(2, 0, 0)) && !(SDL_VERSION_ATLEAST(2, 0, 5))
|
||||||
|
/* These functions require SDL 2.0.5 or greater.
|
||||||
|
|
||||||
|
https://wiki.libsdl.org/SDL_SetWindowResizable
|
||||||
|
*/
|
||||||
|
void SDL_SetWindowResizable(SDL_Window *window, SDL_bool resizable);
|
||||||
|
int SDL_GetWindowOpacity(SDL_Window *window, float *opacity);
|
||||||
|
int SDL_SetWindowOpacity(SDL_Window *window, float opacity);
|
||||||
|
int SDL_SetWindowModalFor(SDL_Window *modal_window, SDL_Window *parent_window);
|
||||||
|
int SDL_SetWindowInputFocus(SDL_Window *window);
|
||||||
|
SDL_Surface * SDL_CreateRGBSurfaceWithFormat(Uint32 flags, int width, int height, int depth,
|
||||||
|
Uint32 format);
|
||||||
|
#endif
|
||||||
|
#endif /* defined(SDL_VERSION_ATLEAST) */
|
||||||
|
|
||||||
|
// Currently needed to build scrap.c, event.c, display.c
|
||||||
|
// with Windows SDK 10.0.18362.0 and SDL1 build
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#ifndef WINDOWS_IGNORE_PACKING_MISMATCH
|
||||||
|
#define WINDOWS_IGNORE_PACKING_MISMATCH
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ~PGCOMPAT_INTERNAL_H */
|
13
venv/Include/site/python3.9/pygame/pgimport.h
Normal file
13
venv/Include/site/python3.9/pygame/pgimport.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef PGIMPORT_INTERNAL_H
|
||||||
|
#define PGIMPORT_INTERNAL_H
|
||||||
|
|
||||||
|
#include "include/pgimport.h"
|
||||||
|
|
||||||
|
#if PG_HAVE_CAPSULE
|
||||||
|
#define encapsulate_api(ptr, module) \
|
||||||
|
PyCapsule_New(ptr, PG_CAPSULE_NAME(module), NULL)
|
||||||
|
#else /* ~PG_HAVE_CAPSULE */
|
||||||
|
#define encapsulate_api(ptr, module) PyCObject_FromVoidPtr(ptr, NULL)
|
||||||
|
#endif /* ~PG_HAVE_CAPSULE */
|
||||||
|
|
||||||
|
#endif /* PGIMPORT_INTERNAL_H */
|
18
venv/Include/site/python3.9/pygame/pgopengl.h
Normal file
18
venv/Include/site/python3.9/pygame/pgopengl.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#if !defined(PGOPENGL_H)
|
||||||
|
#define PGOPENGL_H
|
||||||
|
|
||||||
|
/** This header includes definitions of Opengl functions as pointer types for
|
||||||
|
** use with the SDL function SDL_GL_GetProcAddress.
|
||||||
|
**/
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
#define GL_APIENTRY __stdcall
|
||||||
|
#else
|
||||||
|
#define GL_APIENTRY
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef void (GL_APIENTRY *GL_glReadPixels_Func)(int, int, int, int, unsigned int, unsigned int, void*);
|
||||||
|
|
||||||
|
typedef void (GL_APIENTRY *GL_glViewport_Func)(int, int, unsigned int, unsigned int);
|
||||||
|
#endif
|
||||||
|
|
38
venv/Include/site/python3.9/pygame/pgplatform.h
Normal file
38
venv/Include/site/python3.9/pygame/pgplatform.h
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/* platform/compiler adjustments (internal) */
|
||||||
|
#ifndef PG_PLATFORM_INTERNAL_H
|
||||||
|
#define PG_PLATFORM_INTERNAL_H
|
||||||
|
|
||||||
|
/* This must be before all else */
|
||||||
|
#if defined(__SYMBIAN32__) && defined(OPENC)
|
||||||
|
#include <sys/types.h>
|
||||||
|
#if defined(__WINS__)
|
||||||
|
void *
|
||||||
|
_alloca(size_t size);
|
||||||
|
#define alloca _alloca
|
||||||
|
#endif /* __WINS__ */
|
||||||
|
#endif /* defined(__SYMBIAN32__) && defined(OPENC) */
|
||||||
|
|
||||||
|
#include "include/pgplatform.h"
|
||||||
|
|
||||||
|
#ifndef MIN
|
||||||
|
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
#ifndef MAX
|
||||||
|
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
#ifndef ABS
|
||||||
|
#define ABS(a) (((a) < 0) ? -(a) : (a))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(macintosh) && defined(__MWERKS__) || defined(__SYMBIAN32__)
|
||||||
|
#define PYGAME_EXPORT __declspec(export)
|
||||||
|
#else
|
||||||
|
#define PYGAME_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* warnings */
|
||||||
|
#define PG_STRINGIZE_HELPER(x) #x
|
||||||
|
#define PG_STRINGIZE(x) PG_STRINGIZE_HELPER(x)
|
||||||
|
#define PG_WARN(desc) message(__FILE__ "(" PG_STRINGIZE(__LINE__) "): WARNING: " #desc)
|
||||||
|
|
||||||
|
#endif /* ~PG_PLATFORM_INTERNAL_H */
|
32
venv/Include/site/python3.9/pygame/pygame.h
Normal file
32
venv/Include/site/python3.9/pygame/pygame.h
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* This will use PYGAMEAPI_DEFINE_SLOTS instead
|
||||||
|
* of PYGAMEAPI_EXTERN_SLOTS for base modules.
|
||||||
|
*/
|
||||||
|
#ifndef PYGAME_INTERNAL_H
|
||||||
|
#define PYGAME_INTERNAL_H
|
||||||
|
|
||||||
|
#define PYGAME_H
|
||||||
|
#include "_pygame.h"
|
||||||
|
|
||||||
|
#endif /* ~PYGAME_INTERNAL_H */
|
148
venv/Include/site/python3.9/pygame/scrap.h
Normal file
148
venv/Include/site/python3.9/pygame/scrap.h
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2006, 2007 Rene Dudfield, Marcus von Appen
|
||||||
|
|
||||||
|
Originally put in the public domain by Sam Lantinga.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SCRAP_H
|
||||||
|
#define SCRAP_H
|
||||||
|
|
||||||
|
/* This is unconditionally defined in Python.h */
|
||||||
|
#if defined(_POSIX_C_SOURCE)
|
||||||
|
#undef _POSIX_C_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
/* Handle clipboard text and data in arbitrary formats */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Predefined supported pygame scrap types.
|
||||||
|
*/
|
||||||
|
#define PYGAME_SCRAP_TEXT "text/plain"
|
||||||
|
#define PYGAME_SCRAP_BMP "image/bmp"
|
||||||
|
#define PYGAME_SCRAP_PPM "image/ppm"
|
||||||
|
#define PYGAME_SCRAP_PBM "image/pbm"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The supported scrap clipboard types.
|
||||||
|
*
|
||||||
|
* This is only relevant in a X11 environment, which supports mouse
|
||||||
|
* selections as well. For Win32 and MacOS environments the default
|
||||||
|
* clipboard is used, no matter what value is passed.
|
||||||
|
*/
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
SCRAP_CLIPBOARD,
|
||||||
|
SCRAP_SELECTION /* only supported in X11 environments. */
|
||||||
|
} ScrapClipType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Macro for initialization checks.
|
||||||
|
*/
|
||||||
|
#define PYGAME_SCRAP_INIT_CHECK() \
|
||||||
|
if(!pygame_scrap_initialized()) \
|
||||||
|
return (PyErr_SetString (pgExc_SDLError, \
|
||||||
|
"scrap system not initialized."), NULL)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Checks, whether the pygame scrap module was initialized.
|
||||||
|
*
|
||||||
|
* \return 1 if the modules was initialized, 0 otherwise.
|
||||||
|
*/
|
||||||
|
extern int
|
||||||
|
pygame_scrap_initialized (void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Initializes the pygame scrap module internals. Call this before any
|
||||||
|
* other method.
|
||||||
|
*
|
||||||
|
* \return 1 on successful initialization, 0 otherwise.
|
||||||
|
*/
|
||||||
|
extern int
|
||||||
|
pygame_scrap_init (void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Checks, whether the pygame window lost the clipboard focus or not.
|
||||||
|
*
|
||||||
|
* \return 1 if the window lost the focus, 0 otherwise.
|
||||||
|
*/
|
||||||
|
extern int
|
||||||
|
pygame_scrap_lost (void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Places content of a specific type into the clipboard.
|
||||||
|
*
|
||||||
|
* \note For X11 the following notes are important: The following types
|
||||||
|
* are reserved for internal usage and thus will throw an error on
|
||||||
|
* setting them: "TIMESTAMP", "TARGETS", "SDL_SELECTION".
|
||||||
|
* Setting PYGAME_SCRAP_TEXT ("text/plain") will also automatically
|
||||||
|
* set the X11 types "STRING" (XA_STRING), "TEXT" and "UTF8_STRING".
|
||||||
|
*
|
||||||
|
* For Win32 the following notes are important: Setting
|
||||||
|
* PYGAME_SCRAP_TEXT ("text/plain") will also automatically set
|
||||||
|
* the Win32 type "TEXT" (CF_TEXT).
|
||||||
|
*
|
||||||
|
* For QNX the following notes are important: Setting
|
||||||
|
* PYGAME_SCRAP_TEXT ("text/plain") will also automatically set
|
||||||
|
* the QNX type "TEXT" (Ph_CL_TEXT).
|
||||||
|
*
|
||||||
|
* \param type The type of the content.
|
||||||
|
* \param srclen The length of the content.
|
||||||
|
* \param src The NULL terminated content.
|
||||||
|
* \return 1, if the content could be successfully pasted into the clipboard,
|
||||||
|
* 0 otherwise.
|
||||||
|
*/
|
||||||
|
extern int
|
||||||
|
pygame_scrap_put (char *type, int srclen, char *src);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Gets the current content from the clipboard.
|
||||||
|
*
|
||||||
|
* \note The received content does not need to be the content previously
|
||||||
|
* placed in the clipboard using pygame_put_scrap(). See the
|
||||||
|
* pygame_put_scrap() notes for more details.
|
||||||
|
*
|
||||||
|
* \param type The type of the content to receive.
|
||||||
|
* \param count The size of the returned content.
|
||||||
|
* \return The content or NULL in case of an error or if no content of the
|
||||||
|
* specified type was available.
|
||||||
|
*/
|
||||||
|
extern char*
|
||||||
|
pygame_scrap_get (char *type, unsigned long *count);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Gets the currently available content types from the clipboard.
|
||||||
|
*
|
||||||
|
* \return The different available content types or NULL in case of an
|
||||||
|
* error or if no content type is available.
|
||||||
|
*/
|
||||||
|
extern char**
|
||||||
|
pygame_scrap_get_types (void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Checks whether content for the specified scrap type is currently
|
||||||
|
* available in the clipboard.
|
||||||
|
*
|
||||||
|
* \param type The type to check for.
|
||||||
|
* \return 1, if there is content and 0 otherwise.
|
||||||
|
*/
|
||||||
|
extern int
|
||||||
|
pygame_scrap_contains (char *type);
|
||||||
|
|
||||||
|
#endif /* SCRAP_H */
|
384
venv/Include/site/python3.9/pygame/surface.h
Normal file
384
venv/Include/site/python3.9/pygame/surface.h
Normal file
@ -0,0 +1,384 @@
|
|||||||
|
/*
|
||||||
|
pygame - Python Game Library
|
||||||
|
Copyright (C) 2000-2001 Pete Shinners
|
||||||
|
Copyright (C) 2007 Marcus von Appen
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Pete Shinners
|
||||||
|
pete@shinners.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SURFACE_H
|
||||||
|
#define SURFACE_H
|
||||||
|
|
||||||
|
/* This is defined in SDL.h */
|
||||||
|
#if defined(_POSIX_C_SOURCE)
|
||||||
|
#undef _POSIX_C_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <SDL.h>
|
||||||
|
#include "pygame.h"
|
||||||
|
|
||||||
|
/* Blend modes */
|
||||||
|
#define PYGAME_BLEND_ADD 0x1
|
||||||
|
#define PYGAME_BLEND_SUB 0x2
|
||||||
|
#define PYGAME_BLEND_MULT 0x3
|
||||||
|
#define PYGAME_BLEND_MIN 0x4
|
||||||
|
#define PYGAME_BLEND_MAX 0x5
|
||||||
|
|
||||||
|
#define PYGAME_BLEND_RGB_ADD 0x1
|
||||||
|
#define PYGAME_BLEND_RGB_SUB 0x2
|
||||||
|
#define PYGAME_BLEND_RGB_MULT 0x3
|
||||||
|
#define PYGAME_BLEND_RGB_MIN 0x4
|
||||||
|
#define PYGAME_BLEND_RGB_MAX 0x5
|
||||||
|
|
||||||
|
#define PYGAME_BLEND_RGBA_ADD 0x6
|
||||||
|
#define PYGAME_BLEND_RGBA_SUB 0x7
|
||||||
|
#define PYGAME_BLEND_RGBA_MULT 0x8
|
||||||
|
#define PYGAME_BLEND_RGBA_MIN 0x9
|
||||||
|
#define PYGAME_BLEND_RGBA_MAX 0x10
|
||||||
|
#define PYGAME_BLEND_PREMULTIPLIED 0x11
|
||||||
|
#define PYGAME_BLEND_ALPHA_SDL2 0x12
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
|
||||||
|
#define GET_PIXEL_24(b) (b[0] + (b[1] << 8) + (b[2] << 16))
|
||||||
|
#else
|
||||||
|
#define GET_PIXEL_24(b) (b[2] + (b[1] << 8) + (b[0] << 16))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define GET_PIXEL(pxl, bpp, source) \
|
||||||
|
switch (bpp) \
|
||||||
|
{ \
|
||||||
|
case 2: \
|
||||||
|
pxl = *((Uint16 *) (source)); \
|
||||||
|
break; \
|
||||||
|
case 4: \
|
||||||
|
pxl = *((Uint32 *) (source)); \
|
||||||
|
break; \
|
||||||
|
default: \
|
||||||
|
{ \
|
||||||
|
Uint8 *b = (Uint8 *) source; \
|
||||||
|
pxl = GET_PIXEL_24(b); \
|
||||||
|
} \
|
||||||
|
break; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#if IS_SDLv1
|
||||||
|
#define GET_PIXELVALS(_sR, _sG, _sB, _sA, px, fmt, ppa) \
|
||||||
|
_sR = ((px & fmt->Rmask) >> fmt->Rshift); \
|
||||||
|
_sR = (_sR << fmt->Rloss) + (_sR >> (8 - (fmt->Rloss << 1))); \
|
||||||
|
_sG = ((px & fmt->Gmask) >> fmt->Gshift); \
|
||||||
|
_sG = (_sG << fmt->Gloss) + (_sG >> (8 - (fmt->Gloss << 1))); \
|
||||||
|
_sB = ((px & fmt->Bmask) >> fmt->Bshift); \
|
||||||
|
_sB = (_sB << fmt->Bloss) + (_sB >> (8 - (fmt->Bloss << 1))); \
|
||||||
|
if (ppa) \
|
||||||
|
{ \
|
||||||
|
_sA = ((px & fmt->Amask) >> fmt->Ashift); \
|
||||||
|
_sA = (_sA << fmt->Aloss) + (_sA >> (8 - (fmt->Aloss << 1))); \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
{ \
|
||||||
|
_sA = 255; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define GET_PIXELVALS_1(sr, sg, sb, sa, _src, _fmt) \
|
||||||
|
sr = _fmt->palette->colors[*((Uint8 *) (_src))].r; \
|
||||||
|
sg = _fmt->palette->colors[*((Uint8 *) (_src))].g; \
|
||||||
|
sb = _fmt->palette->colors[*((Uint8 *) (_src))].b; \
|
||||||
|
sa = 255;
|
||||||
|
|
||||||
|
/* For 1 byte palette pixels */
|
||||||
|
#define SET_PIXELVAL(px, fmt, _dR, _dG, _dB, _dA) \
|
||||||
|
*(px) = (Uint8) SDL_MapRGB(fmt, _dR, _dG, _dB)
|
||||||
|
#else /* IS_SDLv2 */
|
||||||
|
#define GET_PIXELVALS(_sR, _sG, _sB, _sA, px, fmt, ppa) \
|
||||||
|
SDL_GetRGBA(px, fmt, &(_sR), &(_sG), &(_sB), &(_sA)); \
|
||||||
|
if (!ppa) { \
|
||||||
|
_sA = 255; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define GET_PIXELVALS_1(sr, sg, sb, sa, _src, _fmt) \
|
||||||
|
sr = _fmt->palette->colors[*((Uint8 *) (_src))].r; \
|
||||||
|
sg = _fmt->palette->colors[*((Uint8 *) (_src))].g; \
|
||||||
|
sb = _fmt->palette->colors[*((Uint8 *) (_src))].b; \
|
||||||
|
sa = 255;
|
||||||
|
|
||||||
|
/* For 1 byte palette pixels */
|
||||||
|
#define SET_PIXELVAL(px, fmt, _dR, _dG, _dB, _dA) \
|
||||||
|
*(px) = (Uint8) SDL_MapRGBA(fmt, _dR, _dG, _dB, _dA)
|
||||||
|
#endif /* IS_SDLv2 */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
|
||||||
|
#define SET_OFFSETS_24(or, og, ob, fmt) \
|
||||||
|
{ \
|
||||||
|
or = (fmt->Rshift == 0 ? 0 : \
|
||||||
|
fmt->Rshift == 8 ? 1 : \
|
||||||
|
2 ); \
|
||||||
|
og = (fmt->Gshift == 0 ? 0 : \
|
||||||
|
fmt->Gshift == 8 ? 1 : \
|
||||||
|
2 ); \
|
||||||
|
ob = (fmt->Bshift == 0 ? 0 : \
|
||||||
|
fmt->Bshift == 8 ? 1 : \
|
||||||
|
2 ); \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define SET_OFFSETS_32(or, og, ob, fmt) \
|
||||||
|
{ \
|
||||||
|
or = (fmt->Rshift == 0 ? 0 : \
|
||||||
|
fmt->Rshift == 8 ? 1 : \
|
||||||
|
fmt->Rshift == 16 ? 2 : \
|
||||||
|
3 ); \
|
||||||
|
og = (fmt->Gshift == 0 ? 0 : \
|
||||||
|
fmt->Gshift == 8 ? 1 : \
|
||||||
|
fmt->Gshift == 16 ? 2 : \
|
||||||
|
3 ); \
|
||||||
|
ob = (fmt->Bshift == 0 ? 0 : \
|
||||||
|
fmt->Bshift == 8 ? 1 : \
|
||||||
|
fmt->Bshift == 16 ? 2 : \
|
||||||
|
3 ); \
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#define SET_OFFSETS_24(or, og, ob, fmt) \
|
||||||
|
{ \
|
||||||
|
or = (fmt->Rshift == 0 ? 2 : \
|
||||||
|
fmt->Rshift == 8 ? 1 : \
|
||||||
|
0 ); \
|
||||||
|
og = (fmt->Gshift == 0 ? 2 : \
|
||||||
|
fmt->Gshift == 8 ? 1 : \
|
||||||
|
0 ); \
|
||||||
|
ob = (fmt->Bshift == 0 ? 2 : \
|
||||||
|
fmt->Bshift == 8 ? 1 : \
|
||||||
|
0 ); \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define SET_OFFSETS_32(or, og, ob, fmt) \
|
||||||
|
{ \
|
||||||
|
or = (fmt->Rshift == 0 ? 3 : \
|
||||||
|
fmt->Rshift == 8 ? 2 : \
|
||||||
|
fmt->Rshift == 16 ? 1 : \
|
||||||
|
0 ); \
|
||||||
|
og = (fmt->Gshift == 0 ? 3 : \
|
||||||
|
fmt->Gshift == 8 ? 2 : \
|
||||||
|
fmt->Gshift == 16 ? 1 : \
|
||||||
|
0 ); \
|
||||||
|
ob = (fmt->Bshift == 0 ? 3 : \
|
||||||
|
fmt->Bshift == 8 ? 2 : \
|
||||||
|
fmt->Bshift == 16 ? 1 : \
|
||||||
|
0 ); \
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define CREATE_PIXEL(buf, r, g, b, a, bp, ft) \
|
||||||
|
switch (bp) \
|
||||||
|
{ \
|
||||||
|
case 2: \
|
||||||
|
*((Uint16 *) (buf)) = \
|
||||||
|
((r >> ft->Rloss) << ft->Rshift) | \
|
||||||
|
((g >> ft->Gloss) << ft->Gshift) | \
|
||||||
|
((b >> ft->Bloss) << ft->Bshift) | \
|
||||||
|
((a >> ft->Aloss) << ft->Ashift); \
|
||||||
|
break; \
|
||||||
|
case 4: \
|
||||||
|
*((Uint32 *) (buf)) = \
|
||||||
|
((r >> ft->Rloss) << ft->Rshift) | \
|
||||||
|
((g >> ft->Gloss) << ft->Gshift) | \
|
||||||
|
((b >> ft->Bloss) << ft->Bshift) | \
|
||||||
|
((a >> ft->Aloss) << ft->Ashift); \
|
||||||
|
break; \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pretty good idea from Tom Duff :-). */
|
||||||
|
#define LOOP_UNROLLED4(code, n, width) \
|
||||||
|
n = (width + 3) / 4; \
|
||||||
|
switch (width & 3) \
|
||||||
|
{ \
|
||||||
|
case 0: do { code; \
|
||||||
|
case 3: code; \
|
||||||
|
case 2: code; \
|
||||||
|
case 1: code; \
|
||||||
|
} while (--n > 0); \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Used in the srcbpp == dstbpp == 1 blend functions */
|
||||||
|
#define REPEAT_3(code) \
|
||||||
|
code; \
|
||||||
|
code; \
|
||||||
|
code;
|
||||||
|
|
||||||
|
#define REPEAT_4(code) \
|
||||||
|
code; \
|
||||||
|
code; \
|
||||||
|
code; \
|
||||||
|
code;
|
||||||
|
|
||||||
|
|
||||||
|
#define BLEND_ADD(tmp, sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
tmp = dR + sR; dR = (tmp <= 255 ? tmp : 255); \
|
||||||
|
tmp = dG + sG; dG = (tmp <= 255 ? tmp : 255); \
|
||||||
|
tmp = dB + sB; dB = (tmp <= 255 ? tmp : 255);
|
||||||
|
|
||||||
|
#define BLEND_SUB(tmp, sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
tmp = dR - sR; dR = (tmp >= 0 ? tmp : 0); \
|
||||||
|
tmp = dG - sG; dG = (tmp >= 0 ? tmp : 0); \
|
||||||
|
tmp = dB - sB; dB = (tmp >= 0 ? tmp : 0);
|
||||||
|
|
||||||
|
#define BLEND_MULT(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
dR = (dR && sR) ? (dR * sR) >> 8 : 0; \
|
||||||
|
dG = (dG && sG) ? (dG * sG) >> 8 : 0; \
|
||||||
|
dB = (dB && sB) ? (dB * sB) >> 8 : 0;
|
||||||
|
|
||||||
|
#define BLEND_MIN(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
if(sR < dR) { dR = sR; } \
|
||||||
|
if(sG < dG) { dG = sG; } \
|
||||||
|
if(sB < dB) { dB = sB; }
|
||||||
|
|
||||||
|
#define BLEND_MAX(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
if(sR > dR) { dR = sR; } \
|
||||||
|
if(sG > dG) { dG = sG; } \
|
||||||
|
if(sB > dB) { dB = sB; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define BLEND_RGBA_ADD(tmp, sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
tmp = dR + sR; dR = (tmp <= 255 ? tmp : 255); \
|
||||||
|
tmp = dG + sG; dG = (tmp <= 255 ? tmp : 255); \
|
||||||
|
tmp = dB + sB; dB = (tmp <= 255 ? tmp : 255); \
|
||||||
|
tmp = dA + sA; dA = (tmp <= 255 ? tmp : 255);
|
||||||
|
|
||||||
|
#define BLEND_RGBA_SUB(tmp, sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
tmp = dR - sR; dR = (tmp >= 0 ? tmp : 0); \
|
||||||
|
tmp = dG - sG; dG = (tmp >= 0 ? tmp : 0); \
|
||||||
|
tmp = dB - sB; dB = (tmp >= 0 ? tmp : 0); \
|
||||||
|
tmp = dA - sA; dA = (tmp >= 0 ? tmp : 0);
|
||||||
|
|
||||||
|
#define BLEND_RGBA_MULT(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
dR = (dR && sR) ? (dR * sR) >> 8 : 0; \
|
||||||
|
dG = (dG && sG) ? (dG * sG) >> 8 : 0; \
|
||||||
|
dB = (dB && sB) ? (dB * sB) >> 8 : 0; \
|
||||||
|
dA = (dA && sA) ? (dA * sA) >> 8 : 0;
|
||||||
|
|
||||||
|
#define BLEND_RGBA_MIN(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
if(sR < dR) { dR = sR; } \
|
||||||
|
if(sG < dG) { dG = sG; } \
|
||||||
|
if(sB < dB) { dB = sB; } \
|
||||||
|
if(sA < dA) { dA = sA; }
|
||||||
|
|
||||||
|
#define BLEND_RGBA_MAX(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
if(sR > dR) { dR = sR; } \
|
||||||
|
if(sG > dG) { dG = sG; } \
|
||||||
|
if(sB > dB) { dB = sB; } \
|
||||||
|
if(sA > dA) { dA = sA; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if 1
|
||||||
|
/* Choose an alpha blend equation. If the sign is preserved on a right shift
|
||||||
|
* then use a specialized, faster, equation. Otherwise a more general form,
|
||||||
|
* where all additions are done before the shift, is needed.
|
||||||
|
*/
|
||||||
|
#if (-1 >> 1) < 0
|
||||||
|
#define ALPHA_BLEND_COMP(sC, dC, sA) ((((sC - dC) * sA + sC) >> 8) + dC)
|
||||||
|
#else
|
||||||
|
#define ALPHA_BLEND_COMP(sC, dC, sA) (((dC << 8) + (sC - dC) * sA + sC) >> 8)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define ALPHA_BLEND(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
do { \
|
||||||
|
if (dA) \
|
||||||
|
{ \
|
||||||
|
dR = ALPHA_BLEND_COMP(sR, dR, sA); \
|
||||||
|
dG = ALPHA_BLEND_COMP(sG, dG, sA); \
|
||||||
|
dB = ALPHA_BLEND_COMP(sB, dB, sA); \
|
||||||
|
dA = sA + dA - ((sA * dA) / 255); \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
{ \
|
||||||
|
dR = sR; \
|
||||||
|
dG = sG; \
|
||||||
|
dB = sB; \
|
||||||
|
dA = sA; \
|
||||||
|
} \
|
||||||
|
} while(0)
|
||||||
|
|
||||||
|
#define ALPHA_BLEND_PREMULTIPLIED_COMP(sC, dC, sA) (sC + dC - ((dC + 1) * sA >> 8))
|
||||||
|
|
||||||
|
#define ALPHA_BLEND_PREMULTIPLIED(tmp, sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
do { \
|
||||||
|
dR = ALPHA_BLEND_PREMULTIPLIED_COMP(sR, dR, sA); \
|
||||||
|
dG = ALPHA_BLEND_PREMULTIPLIED_COMP(sG, dG, sA); \
|
||||||
|
dB = ALPHA_BLEND_PREMULTIPLIED_COMP(sB, dB, sA); \
|
||||||
|
dA = ALPHA_BLEND_PREMULTIPLIED_COMP(sA, dA, sA); \
|
||||||
|
} while(0)
|
||||||
|
#elif 0
|
||||||
|
|
||||||
|
#define ALPHA_BLEND(sR, sG, sB, sA, dR, dG, dB, dA) \
|
||||||
|
do { \
|
||||||
|
if(sA){ \
|
||||||
|
if(dA && sA < 255){ \
|
||||||
|
int dContrib = dA*(255 - sA)/255; \
|
||||||
|
dA = sA+dA - ((sA*dA)/255); \
|
||||||
|
dR = (dR*dContrib + sR*sA)/dA; \
|
||||||
|
dG = (dG*dContrib + sG*sA)/dA; \
|
||||||
|
dB = (dB*dContrib + sB*sA)/dA; \
|
||||||
|
}else{ \
|
||||||
|
dR = sR; \
|
||||||
|
dG = sG; \
|
||||||
|
dB = sB; \
|
||||||
|
dA = sA; \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
} while(0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int
|
||||||
|
surface_fill_blend (SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
|
||||||
|
int blendargs);
|
||||||
|
|
||||||
|
void
|
||||||
|
surface_respect_clip_rect (SDL_Surface *surface, SDL_Rect *rect);
|
||||||
|
|
||||||
|
int
|
||||||
|
pygame_AlphaBlit (SDL_Surface * src, SDL_Rect * srcrect,
|
||||||
|
SDL_Surface * dst, SDL_Rect * dstrect, int the_args);
|
||||||
|
|
||||||
|
int
|
||||||
|
pygame_Blit (SDL_Surface * src, SDL_Rect * srcrect,
|
||||||
|
SDL_Surface * dst, SDL_Rect * dstrect, int the_args);
|
||||||
|
|
||||||
|
#endif /* SURFACE_H */
|
123
venv/Lib/site-packages/_distutils_hack/__init__.py
Normal file
123
venv/Lib/site-packages/_distutils_hack/__init__.py
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
import sys
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import importlib
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
|
||||||
|
is_pypy = '__pypy__' in sys.builtin_module_names
|
||||||
|
|
||||||
|
|
||||||
|
def warn_distutils_present():
|
||||||
|
if 'distutils' not in sys.modules:
|
||||||
|
return
|
||||||
|
if is_pypy and sys.version_info < (3, 7):
|
||||||
|
# PyPy for 3.6 unconditionally imports distutils, so bypass the warning
|
||||||
|
# https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
|
||||||
|
return
|
||||||
|
warnings.warn(
|
||||||
|
"Distutils was imported before Setuptools, but importing Setuptools "
|
||||||
|
"also replaces the `distutils` module in `sys.modules`. This may lead "
|
||||||
|
"to undesirable behaviors or errors. To avoid these issues, avoid "
|
||||||
|
"using distutils directly, ensure that setuptools is installed in the "
|
||||||
|
"traditional way (e.g. not an editable install), and/or make sure "
|
||||||
|
"that setuptools is always imported before distutils.")
|
||||||
|
|
||||||
|
|
||||||
|
def clear_distutils():
|
||||||
|
if 'distutils' not in sys.modules:
|
||||||
|
return
|
||||||
|
warnings.warn("Setuptools is replacing distutils.")
|
||||||
|
mods = [name for name in sys.modules if re.match(r'distutils\b', name)]
|
||||||
|
for name in mods:
|
||||||
|
del sys.modules[name]
|
||||||
|
|
||||||
|
|
||||||
|
def enabled():
|
||||||
|
"""
|
||||||
|
Allow selection of distutils by environment variable.
|
||||||
|
"""
|
||||||
|
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
|
||||||
|
return which == 'local'
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_local_distutils():
|
||||||
|
clear_distutils()
|
||||||
|
distutils = importlib.import_module('setuptools._distutils')
|
||||||
|
distutils.__name__ = 'distutils'
|
||||||
|
sys.modules['distutils'] = distutils
|
||||||
|
|
||||||
|
# sanity check that submodules load as expected
|
||||||
|
core = importlib.import_module('distutils.core')
|
||||||
|
assert '_distutils' in core.__file__, core.__file__
|
||||||
|
|
||||||
|
|
||||||
|
def do_override():
|
||||||
|
"""
|
||||||
|
Ensure that the local copy of distutils is preferred over stdlib.
|
||||||
|
|
||||||
|
See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
|
||||||
|
for more motivation.
|
||||||
|
"""
|
||||||
|
if enabled():
|
||||||
|
warn_distutils_present()
|
||||||
|
ensure_local_distutils()
|
||||||
|
|
||||||
|
|
||||||
|
class DistutilsMetaFinder:
|
||||||
|
def find_spec(self, fullname, path, target=None):
|
||||||
|
if path is not None:
|
||||||
|
return
|
||||||
|
|
||||||
|
method_name = 'spec_for_{fullname}'.format(**locals())
|
||||||
|
method = getattr(self, method_name, lambda: None)
|
||||||
|
return method()
|
||||||
|
|
||||||
|
def spec_for_distutils(self):
|
||||||
|
import importlib.abc
|
||||||
|
import importlib.util
|
||||||
|
|
||||||
|
class DistutilsLoader(importlib.abc.Loader):
|
||||||
|
|
||||||
|
def create_module(self, spec):
|
||||||
|
return importlib.import_module('setuptools._distutils')
|
||||||
|
|
||||||
|
def exec_module(self, module):
|
||||||
|
pass
|
||||||
|
|
||||||
|
return importlib.util.spec_from_loader('distutils', DistutilsLoader())
|
||||||
|
|
||||||
|
def spec_for_pip(self):
|
||||||
|
"""
|
||||||
|
Ensure stdlib distutils when running under pip.
|
||||||
|
See pypa/pip#8761 for rationale.
|
||||||
|
"""
|
||||||
|
if self.pip_imported_during_build():
|
||||||
|
return
|
||||||
|
clear_distutils()
|
||||||
|
self.spec_for_distutils = lambda: None
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def pip_imported_during_build():
|
||||||
|
"""
|
||||||
|
Detect if pip is being imported in a build script. Ref #2355.
|
||||||
|
"""
|
||||||
|
import traceback
|
||||||
|
return any(
|
||||||
|
frame.f_globals['__file__'].endswith('setup.py')
|
||||||
|
for frame, line in traceback.walk_stack(None)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
DISTUTILS_FINDER = DistutilsMetaFinder()
|
||||||
|
|
||||||
|
|
||||||
|
def add_shim():
|
||||||
|
sys.meta_path.insert(0, DISTUTILS_FINDER)
|
||||||
|
|
||||||
|
|
||||||
|
def remove_shim():
|
||||||
|
try:
|
||||||
|
sys.meta_path.remove(DISTUTILS_FINDER)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
Binary file not shown.
Binary file not shown.
1
venv/Lib/site-packages/_distutils_hack/override.py
Normal file
1
venv/Lib/site-packages/_distutils_hack/override.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
__import__('_distutils_hack').do_override()
|
211
venv/Lib/site-packages/constants-0.6.0-py3.9.egg-info/PKG-INFO
Normal file
211
venv/Lib/site-packages/constants-0.6.0-py3.9.egg-info/PKG-INFO
Normal file
@ -0,0 +1,211 @@
|
|||||||
|
Metadata-Version: 1.1
|
||||||
|
Name: constants
|
||||||
|
Version: 0.6.0
|
||||||
|
Summary: The simple way to deal with environment constants.
|
||||||
|
Home-page: http://github.com/3kwa/constants
|
||||||
|
Author: Eugene Van den Bulke
|
||||||
|
Author-email: eugene.vandenbulke@gmail.com
|
||||||
|
License: BSD
|
||||||
|
Description: =========
|
||||||
|
constants
|
||||||
|
=========
|
||||||
|
|
||||||
|
|
||||||
|
The problem?
|
||||||
|
============
|
||||||
|
|
||||||
|
Most applications use constants. Many constants take different values based
|
||||||
|
on the environment the application is executed in.
|
||||||
|
|
||||||
|
Think database credentials over development, testing, staging, production or
|
||||||
|
stock market execution over development, testing, paper, production ...
|
||||||
|
|
||||||
|
|
||||||
|
A solution
|
||||||
|
==========
|
||||||
|
|
||||||
|
Shamelessly inspired by the app_constants_ gem, ``constants`` aims to solve that
|
||||||
|
problem (and that problem only).
|
||||||
|
|
||||||
|
.ini file
|
||||||
|
---------
|
||||||
|
|
||||||
|
``constants`` uses the .ini file format to specify the application constants
|
||||||
|
values in each environment. DEFAULT values are available in every environment
|
||||||
|
unless specifically overridden in a section.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
[DEFAULT]
|
||||||
|
something = a_default_value
|
||||||
|
all = 1
|
||||||
|
a_string = 0350
|
||||||
|
|
||||||
|
[a_section]
|
||||||
|
something = a_section_value
|
||||||
|
just_for_me = 5.0
|
||||||
|
flag = False
|
||||||
|
minutes = 365 * 24 * 60
|
||||||
|
|
||||||
|
To find out more about ini files and sections, check the Python standard
|
||||||
|
library configparser_ documention.
|
||||||
|
|
||||||
|
The default file is ``constants.ini`` in the current working directory. but
|
||||||
|
you can use any filename you want cf. Instantiation_.
|
||||||
|
|
||||||
|
Environment
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Define the environment the application will run in. The default environment
|
||||||
|
variable to store that value is __CONSTANTS__, but you can use any variable
|
||||||
|
name you want cf. Instantiation_.
|
||||||
|
|
||||||
|
Most platform have a way to do that, in bash:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
export __CONSTANTS__=a_section
|
||||||
|
|
||||||
|
.. _Instantiation:
|
||||||
|
|
||||||
|
Instantiation
|
||||||
|
-------------
|
||||||
|
|
||||||
|
>>> import constants
|
||||||
|
>>> consts = constants.Constants()
|
||||||
|
|
||||||
|
On instantiation, constants looks for an environement variable named
|
||||||
|
__CONSTANTS__ whose value is used to find out which section of the
|
||||||
|
constants.ini file should be used.
|
||||||
|
|
||||||
|
Constants' constructor takes two (2) optional parameters. ``variable``
|
||||||
|
let's you specify the name of the environment variable and ``filename``
|
||||||
|
the absolute path to the .ini file containing the constants definitions.
|
||||||
|
|
||||||
|
>>> consts = Constants(variable='AN_ENVIRONMENT_VARIABLE',
|
||||||
|
... filename='constants.cfg') # doctest: +SKIP
|
||||||
|
|
||||||
|
Values
|
||||||
|
------
|
||||||
|
|
||||||
|
To access the values, the instance can be used like a dictionary (getitem).
|
||||||
|
|
||||||
|
>>> consts['something']
|
||||||
|
'a_section_value'
|
||||||
|
|
||||||
|
Values are cast into integer, float or boolean when pertinent.
|
||||||
|
|
||||||
|
>>> consts['all']
|
||||||
|
1
|
||||||
|
>>> consts.a_string
|
||||||
|
'0350'
|
||||||
|
>>> consts.flag
|
||||||
|
False
|
||||||
|
|
||||||
|
Expressions are evaluated.
|
||||||
|
|
||||||
|
>>> consts.minutes
|
||||||
|
525600
|
||||||
|
|
||||||
|
Values can also be accessed using the . operator (getattr)
|
||||||
|
|
||||||
|
>>> consts.all
|
||||||
|
1
|
||||||
|
|
||||||
|
.. _Warning:
|
||||||
|
|
||||||
|
Warning
|
||||||
|
-------
|
||||||
|
|
||||||
|
"We are responsible adults" yet, inspired by Matthew Wilson's suggestion_ to
|
||||||
|
raise an exception when an attempt is made to *change a constant*, ``constants``
|
||||||
|
issues warnings_ ...
|
||||||
|
|
||||||
|
>>> import warnings
|
||||||
|
|
||||||
|
>>> with warnings.catch_warnings(record=True) as warning:
|
||||||
|
... # reassigning the constant all
|
||||||
|
... consts.all = 2
|
||||||
|
|
||||||
|
>>> warning[0].message
|
||||||
|
UserWarning('all changed to 2',)
|
||||||
|
|
||||||
|
... and *changes the constant* anyway.
|
||||||
|
|
||||||
|
>>> consts.all
|
||||||
|
2
|
||||||
|
|
||||||
|
It does so with the dict like assignment as well.
|
||||||
|
|
||||||
|
>>> with warnings.catch_warnings(record=True) as warning:
|
||||||
|
... consts['something'] = 'a_new_value'
|
||||||
|
|
||||||
|
>>> warning[0].message
|
||||||
|
UserWarning('something changed to a_new_value',)
|
||||||
|
|
||||||
|
>>> consts['something']
|
||||||
|
'a_new_value'
|
||||||
|
|
||||||
|
Logging
|
||||||
|
-------
|
||||||
|
|
||||||
|
``constants`` aims to be a good logging_ citizen, grafting a logger to the
|
||||||
|
logging tree.
|
||||||
|
|
||||||
|
All calls to the logger methods expose an extra logRecord key called ``method``.
|
||||||
|
|
||||||
|
With the logging level set to INFO, it logs one and only one useful message.
|
||||||
|
|
||||||
|
>>> import sys
|
||||||
|
>>> import logging
|
||||||
|
>>> logging.basicConfig(level=logging.INFO,
|
||||||
|
... stream=sys.stdout,
|
||||||
|
... format='%(levelname)s %(name)s.%(method)s %(message)s')
|
||||||
|
>>> consts = constants.Constants() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
|
||||||
|
INFO constants.load
|
||||||
|
variable: __CONSTANTS__,
|
||||||
|
filename: constants.ini,
|
||||||
|
environment: a_section,
|
||||||
|
constants: {...}
|
||||||
|
|
||||||
|
At DEBUG level it becomes a tad *noisier*.
|
||||||
|
|
||||||
|
>>> logging.root.setLevel(logging.DEBUG)
|
||||||
|
>>> debug_me = consts.just_for_me # doctest: +ELLIPSIS
|
||||||
|
DEBUG constants.__getattr__ begin (..., 'just_for_me') {}
|
||||||
|
DEBUG constants.__getitem__ begin (..., 'just_for_me') {}
|
||||||
|
DEBUG constants.cast begin ('5.0',) {}
|
||||||
|
DEBUG constants.cast end 5.0
|
||||||
|
DEBUG constants.__getitem__ end 5.0
|
||||||
|
DEBUG constants.__getattr__ end 5.0
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
``constants`` is available on PyPI_ ...
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
pip install constants
|
||||||
|
|
||||||
|
... and can be forked on GitHub_.
|
||||||
|
|
||||||
|
.. _app_constants: https://github.com/leonardoborges/app_constants
|
||||||
|
.. _configparser: http://docs.python.org/library/configparser.html
|
||||||
|
.. _PyPI: http://pypi.python.org/pypi/constants
|
||||||
|
.. _GitHub: https://github.com/3kwa/constants
|
||||||
|
.. _suggestion: https://twitter.com/mw44118/status/256022281409658881
|
||||||
|
.. _warnings: http://docs.python.org/library/warnings.html
|
||||||
|
.. _logging: http://docs.python.org/library/logging.html
|
||||||
|
|
||||||
|
Platform: UNKNOWN
|
||||||
|
Classifier: Development Status :: 4 - Beta
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: BSD License
|
||||||
|
Classifier: Programming Language :: Python :: 2.6
|
||||||
|
Classifier: Programming Language :: Python :: 2.7
|
||||||
|
Classifier: Programming Language :: Python :: 3.0
|
||||||
|
Classifier: Programming Language :: Python :: 3.1
|
||||||
|
Classifier: Programming Language :: Python :: 3.2
|
||||||
|
Classifier: Programming Language :: Python :: 3.3
|
||||||
|
Classifier: Topic :: Software Development :: Libraries
|
@ -0,0 +1,7 @@
|
|||||||
|
README.rst
|
||||||
|
constants.py
|
||||||
|
setup.py
|
||||||
|
constants.egg-info/PKG-INFO
|
||||||
|
constants.egg-info/SOURCES.txt
|
||||||
|
constants.egg-info/dependency_links.txt
|
||||||
|
constants.egg-info/top_level.txt
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1,6 @@
|
|||||||
|
..\__pycache__\constants.cpython-39.pyc
|
||||||
|
..\constants.py
|
||||||
|
PKG-INFO
|
||||||
|
SOURCES.txt
|
||||||
|
dependency_links.txt
|
||||||
|
top_level.txt
|
@ -0,0 +1 @@
|
|||||||
|
constants
|
149
venv/Lib/site-packages/constants.py
Normal file
149
venv/Lib/site-packages/constants.py
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
"""
|
||||||
|
constant.Constants - The simple way to deal with environment constants.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
try:
|
||||||
|
import ConfigParser as configparser
|
||||||
|
except ImportError:
|
||||||
|
import configparser
|
||||||
|
import warnings
|
||||||
|
import logging
|
||||||
|
import functools
|
||||||
|
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
def debug(function):
|
||||||
|
"""
|
||||||
|
logging debug decorator
|
||||||
|
"""
|
||||||
|
@functools.wraps(function)
|
||||||
|
def wrapper(*args, **kvargs):
|
||||||
|
"""
|
||||||
|
wrap method call
|
||||||
|
"""
|
||||||
|
logger.debug('begin %s %s',
|
||||||
|
args,
|
||||||
|
kvargs,
|
||||||
|
extra={'method': function.__name__})
|
||||||
|
result = function(*args, **kvargs)
|
||||||
|
logger.debug('end %s', result, extra={'method': function.__name__})
|
||||||
|
return result
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
VARIABLE = '__CONSTANTS__'
|
||||||
|
FILENAME = 'constants.ini'
|
||||||
|
|
||||||
|
class Constants(object):
|
||||||
|
"""
|
||||||
|
Environement sensitive application constants class
|
||||||
|
"""
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def __init__(self, variable=VARIABLE, filename=FILENAME):
|
||||||
|
"""
|
||||||
|
variable is the name of the environment variable to read the
|
||||||
|
environment / config section from default to __CONSTANTS__
|
||||||
|
filename is the config filename
|
||||||
|
"""
|
||||||
|
object.__setattr__(self, 'dict', {})
|
||||||
|
self.variable = variable
|
||||||
|
self.filename = filename
|
||||||
|
self.load()
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def load(self):
|
||||||
|
"""
|
||||||
|
load the section self.variable from the config file self.filename
|
||||||
|
"""
|
||||||
|
self.get_environment()
|
||||||
|
self.read_config()
|
||||||
|
self.load_dict()
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def get_environment(self):
|
||||||
|
"""
|
||||||
|
returns the value of the environment variable self.variable
|
||||||
|
"""
|
||||||
|
self.environment = os.environ[self.variable]
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def read_config(self):
|
||||||
|
"""
|
||||||
|
returns a ConfigParser instance from self.filename
|
||||||
|
"""
|
||||||
|
self.config = configparser.ConfigParser()
|
||||||
|
with open(self.filename) as config_file:
|
||||||
|
self.config.readfp(config_file)
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def load_dict(self):
|
||||||
|
"""
|
||||||
|
load the config items into self.dict
|
||||||
|
"""
|
||||||
|
self.dict = dict (self.config.items(self.environment))
|
||||||
|
logger.info('variable: %s, filename: %s, environment: %s, constants: %s',
|
||||||
|
self.variable,
|
||||||
|
self.filename,
|
||||||
|
self.environment,
|
||||||
|
self.dict,
|
||||||
|
extra={'method': 'load'})
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def __getitem__(self, item):
|
||||||
|
"""
|
||||||
|
access to environment specific constants in a dictionary manner
|
||||||
|
casts to int, float or keep as string
|
||||||
|
"""
|
||||||
|
return self.cast(self.dict[item])
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def __getattr__(self, item):
|
||||||
|
"""
|
||||||
|
syntactic sugar, .item rather than ['item']
|
||||||
|
"""
|
||||||
|
return self[item]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
@debug
|
||||||
|
def cast(constant):
|
||||||
|
"""
|
||||||
|
cast string to int, float, eval or keep as string
|
||||||
|
"""
|
||||||
|
if hasattr(constant, 'startswith') and constant.startswith('0') \
|
||||||
|
and '.' not in constant:
|
||||||
|
return constant
|
||||||
|
try:
|
||||||
|
return int(constant)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
return float(constant)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
return eval(constant)
|
||||||
|
except (NameError, SyntaxError):
|
||||||
|
pass
|
||||||
|
return constant
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def __setitem__(self, item, value):
|
||||||
|
"""
|
||||||
|
dict like assignment - warns when a constant is changed
|
||||||
|
"""
|
||||||
|
if item in self.dict:
|
||||||
|
warnings.warn('{0} changed to {1}'.format(item, value))
|
||||||
|
self.dict[item] = value
|
||||||
|
|
||||||
|
@debug
|
||||||
|
def __setattr__(self, name, value):
|
||||||
|
"""
|
||||||
|
attribute assignment - warns when a constant is changed
|
||||||
|
"""
|
||||||
|
if hasattr(self, 'dict') and name in self.dict:
|
||||||
|
warnings.warn('{0} changed to {1}'.format(name, value))
|
||||||
|
self.dict[name] = value
|
||||||
|
else:
|
||||||
|
object.__setattr__(self, name, value)
|
1
venv/Lib/site-packages/distutils-precedence.pth
Normal file
1
venv/Lib/site-packages/distutils-precedence.pth
Normal file
@ -0,0 +1 @@
|
|||||||
|
import os; var = 'SETUPTOOLS_USE_DISTUTILS'; enabled = os.environ.get(var, 'stdlib') == 'local'; enabled and __import__('_distutils_hack').add_shim();
|
1
venv/Lib/site-packages/game-0.0.5.dist-info/INSTALLER
Normal file
1
venv/Lib/site-packages/game-0.0.5.dist-info/INSTALLER
Normal file
@ -0,0 +1 @@
|
|||||||
|
pip
|
22
venv/Lib/site-packages/game-0.0.5.dist-info/LICENSE
Normal file
22
venv/Lib/site-packages/game-0.0.5.dist-info/LICENSE
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2020 leesoar.com
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
51
venv/Lib/site-packages/game-0.0.5.dist-info/METADATA
Normal file
51
venv/Lib/site-packages/game-0.0.5.dist-info/METADATA
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
Metadata-Version: 2.1
|
||||||
|
Name: game
|
||||||
|
Version: 0.0.5
|
||||||
|
Summary: A web game emulator, not only can play games. Welcome to explore.
|
||||||
|
Home-page: https://leesoar.com
|
||||||
|
Author: leesoar
|
||||||
|
Author-email: secure@tom.com
|
||||||
|
License: MIT
|
||||||
|
Keywords: game,fc,nes,emulator,nintendo,contra
|
||||||
|
Platform: UNKNOWN
|
||||||
|
Classifier: License :: OSI Approved :: MIT License
|
||||||
|
Classifier: Programming Language :: Python :: 3.5
|
||||||
|
Classifier: Programming Language :: Python :: 3.6
|
||||||
|
Classifier: Programming Language :: Python :: 3.7
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Requires-Python: >=3.3.0
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
|
||||||
|
|
||||||
|
## Game
|
||||||
|
|
||||||
|
A web game emulator, not only can play games. Welcome to explore.
|
||||||
|
|
||||||
|
**Support Online Resource.**
|
||||||
|
|
||||||
|
Thanks for emularity!
|
||||||
|
|
||||||
|
### Release Note
|
||||||
|
* 0.0.5: Release.
|
||||||
|
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|
![ui_1](game/ui_1.jpg)
|
||||||
|
|
||||||
|
![ui_2](game/ui_2.jpg)
|
||||||
|
|
||||||
|
|
||||||
|
### How to use
|
||||||
|
* open web ui
|
||||||
|
```shell
|
||||||
|
>>> game web
|
||||||
|
```
|
||||||
|
|
||||||
|
* select game by path
|
||||||
|
```shell
|
||||||
|
>>> game play "your_link_or_path"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
25
venv/Lib/site-packages/game-0.0.5.dist-info/RECORD
Normal file
25
venv/Lib/site-packages/game-0.0.5.dist-info/RECORD
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
../../Scripts/game.exe,sha256=iPAdRdiiU290xJxwrgTN7cOq7xaPUEfu0gS2_9hswhg,106379
|
||||||
|
game-0.0.5.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||||
|
game-0.0.5.dist-info/LICENSE,sha256=ZmhzMcnzxNwMNK_nyZfuKXq3_hYNO8CEt-4Jer00xYQ,1079
|
||||||
|
game-0.0.5.dist-info/METADATA,sha256=lyUwyiF-JI2BFik_Yicxhnw1y8i2ONQyNR41QPSNurI,1044
|
||||||
|
game-0.0.5.dist-info/RECORD,,
|
||||||
|
game-0.0.5.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
game-0.0.5.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
||||||
|
game-0.0.5.dist-info/entry_points.txt,sha256=5tdN66O_FsVivBvQYhQrBTJ2dIfw1eKjFvvyAVeo7hE,39
|
||||||
|
game-0.0.5.dist-info/top_level.txt,sha256=qwGyB-Va1sUTRvt4anB-6UfFjkcjtKjjyZE1wOdZ9-E,5
|
||||||
|
game/__init__.py,sha256=YoNB6yP3XeW_8RXFaj3p3RInFIpkYrZpe_7JXlvZyEQ,78
|
||||||
|
game/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
game/__pycache__/web.cpython-39.pyc,,
|
||||||
|
game/static/base.js,sha256=-0_Edjq1BmGIWGM8KRUEQbbuUKn5FIx_s3RNvXD4WrM,2360
|
||||||
|
game/static/browserfs.min.js,sha256=hYl2eMsoAuDDkpSOF1KlUzGETnWylOFugWtC6_QNWY8,240276
|
||||||
|
game/static/es6-promise.min.js,sha256=oDBMUmGQTTJXvxJiudl_L3P1w5niBrrx-wDES1PVsJU,5305
|
||||||
|
game/static/favicon.ico,sha256=8dq_61YffvBOyGCdZRHK3nLT8xRxLQTW1o1TIAXo3Yk,67646
|
||||||
|
game/static/game.html,sha256=E6ul-JsYmW1vQuiRW5NSmMOVNnzpMaGlBK5gIQUiByQ,1713
|
||||||
|
game/static/jquery.min.js,sha256=FgpCb_KJQlLNfOu91ta32o_NMZxltwRo8QtmkMRdAu8,86927
|
||||||
|
game/static/loader.js,sha256=QKpJrLqA1aiKEAll2KAfkwDrpHgklKmAsUtynDsPAKI,88676
|
||||||
|
game/static/mamenes.js,sha256=k1OaObhdCOlpiJrV_1E-LgAkWpXgtzgB8nmcF7dolsY,21058948
|
||||||
|
game/static/mamenes_wasm.js,sha256=8mdLmL6i7Kltzx1jVRDcKwcYoc4KvYA4kaaCNKjlDxU,6936507
|
||||||
|
game/static/mamenes_wasm.wasm,sha256=2Nu5X-ZrWIL6WQ_06Uk4FMoVUOPIAZNEHdlpnZR3BaY,13675728
|
||||||
|
game/ui_1.jpg,sha256=X64Ou5UVSD9kIyGA9c1u8fUkuMQ2MvStvjXTjYrT0gQ,195516
|
||||||
|
game/ui_2.jpg,sha256=VF7Cz3iMeXA-2TRYzWAtMm1s9rX2QukuAvWPp9QTwlw,372546
|
||||||
|
game/web.py,sha256=OvvV_vn6toNIlCoMctLHitE7VAWZMYKhxBqedP7We7s,1993
|
5
venv/Lib/site-packages/game-0.0.5.dist-info/WHEEL
Normal file
5
venv/Lib/site-packages/game-0.0.5.dist-info/WHEEL
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Wheel-Version: 1.0
|
||||||
|
Generator: bdist_wheel (0.34.2)
|
||||||
|
Root-Is-Purelib: true
|
||||||
|
Tag: py3-none-any
|
||||||
|
|
@ -0,0 +1,3 @@
|
|||||||
|
[console_scripts]
|
||||||
|
game = game.web:run
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
game
|
6
venv/Lib/site-packages/game/__init__.py
Normal file
6
venv/Lib/site-packages/game/__init__.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# @author: leesoar
|
||||||
|
|
||||||
|
"""game"""
|
||||||
|
|
||||||
|
__version__ = "0.0.5"
|
BIN
venv/Lib/site-packages/game/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
venv/Lib/site-packages/game/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
venv/Lib/site-packages/game/__pycache__/web.cpython-39.pyc
Normal file
BIN
venv/Lib/site-packages/game/__pycache__/web.cpython-39.pyc
Normal file
Binary file not shown.
68
venv/Lib/site-packages/game/static/base.js
Normal file
68
venv/Lib/site-packages/game/static/base.js
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
|
||||||
|
window.onresize = function() {
|
||||||
|
if (!document.fullscreenEnabled || window.fullScreen || document.webkitIsFullScreen || document.msFullscreenEnabled){
|
||||||
|
resizeCanvas();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function runMame(cart, device) {
|
||||||
|
var needWasm = 'WebAssembly' in window;
|
||||||
|
var mamenesWasmJs = "static/mamenes_wasm.js";
|
||||||
|
var mamenesWasmWasm = "static/mamenes_wasm.wasm";
|
||||||
|
var mamenesJs = "static/mamenes.js";
|
||||||
|
|
||||||
|
var emulator = new Emulator(document.querySelector("#emularity-canvas"),
|
||||||
|
startEmulator,
|
||||||
|
new JSMESSLoader(JSMESSLoader.driver(device),
|
||||||
|
JSMESSLoader.nativeResolution(640, 480),
|
||||||
|
JSMESSLoader.emulatorJS(needWasm ? mamenesWasmJs : mamenesJs),
|
||||||
|
JSMESSLoader.emulatorWASM(needWasm && mamenesWasmWasm),
|
||||||
|
JSMESSLoader.mountFile("leesoar_com_game",
|
||||||
|
JSMESSLoader.fetchFile("Game file",
|
||||||
|
cart)),
|
||||||
|
JSMESSLoader.extraArgs(["-cart", "/emulator/leesoar_com_game"])));
|
||||||
|
emulator.setScale(3).start({ waitAfterDownloading: true });
|
||||||
|
emulator.setSplashImage("static/favicon.ico");
|
||||||
|
}
|
||||||
|
|
||||||
|
function getParams() {
|
||||||
|
let params = {};
|
||||||
|
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, k, v) {
|
||||||
|
params[k] = v;
|
||||||
|
});
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
function visitSite() {
|
||||||
|
window.location.href = "https://leesoar.com/acfun#support"
|
||||||
|
}
|
||||||
|
|
||||||
|
function startEmulator() {
|
||||||
|
console.log("Need help? Go leesoar.com to contact me, or send email to secure@tom.com.");
|
||||||
|
}
|
||||||
|
|
||||||
|
function resizeCanvas() {
|
||||||
|
$("#emularity-canvas").width(640);
|
||||||
|
$("#emularity-canvas").height(480);
|
||||||
|
}
|
||||||
|
|
||||||
|
function fullScreen() {
|
||||||
|
var emulatorObj = document.getElementById("emulator-container");
|
||||||
|
if (emulatorObj) {
|
||||||
|
var fullScreenObj = emulatorObj.requestFullScreen || emulatorObj.webkitRequestFullscreen || emulatorObj.mozRequestFullScreen || emulatorObj.msRequestFullScreen;
|
||||||
|
fullScreenObj && (fullScreenObj.call(emulatorObj),
|
||||||
|
(emulatorObj = document.getElementsByClassName("leesoar.com")[0]) && emulatorObj.focus());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
let cart;
|
||||||
|
let device = "nespal";
|
||||||
|
let path = getParams()["p"];
|
||||||
|
if (path.startsWith("http")) {
|
||||||
|
cart = path;
|
||||||
|
} else {
|
||||||
|
cart = "/api/file?p=" + path;
|
||||||
|
}
|
||||||
|
runMame(cart, device);
|
||||||
|
});
|
14
venv/Lib/site-packages/game/static/browserfs.min.js
vendored
Normal file
14
venv/Lib/site-packages/game/static/browserfs.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
18
venv/Lib/site-packages/game/static/es6-promise.min.js
vendored
Normal file
18
venv/Lib/site-packages/game/static/es6-promise.min.js
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/*!
|
||||||
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||||||
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||||||
|
* @license Licensed under MIT license
|
||||||
|
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
|
||||||
|
* @version 2.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(){function r(a,b){n[l]=a;n[l+1]=b;l+=2;2===l&&A()}function s(a){return"function"===typeof a}function F(){return function(){process.nextTick(t)}}function G(){var a=0,b=new B(t),c=document.createTextNode("");b.observe(c,{characterData:!0});return function(){c.data=a=++a%2}}function H(){var a=new MessageChannel;a.port1.onmessage=t;return function(){a.port2.postMessage(0)}}function I(){return function(){setTimeout(t,1)}}function t(){for(var a=0;a<l;a+=2)(0,n[a])(n[a+1]),n[a]=void 0,n[a+1]=void 0;
|
||||||
|
l=0}function p(){}function J(a,b,c,d){try{a.call(b,c,d)}catch(e){return e}}function K(a,b,c){r(function(a){var e=!1,f=J(c,b,function(c){e||(e=!0,b!==c?q(a,c):m(a,c))},function(b){e||(e=!0,g(a,b))});!e&&f&&(e=!0,g(a,f))},a)}function L(a,b){1===b.a?m(a,b.b):2===a.a?g(a,b.b):u(b,void 0,function(b){q(a,b)},function(b){g(a,b)})}function q(a,b){if(a===b)g(a,new TypeError("You cannot resolve a promise with itself"));else if("function"===typeof b||"object"===typeof b&&null!==b)if(b.constructor===a.constructor)L(a,
|
||||||
|
b);else{var c;try{c=b.then}catch(d){v.error=d,c=v}c===v?g(a,v.error):void 0===c?m(a,b):s(c)?K(a,b,c):m(a,b)}else m(a,b)}function M(a){a.d&&a.d(a.b);x(a)}function m(a,b){void 0===a.a&&(a.b=b,a.a=1,0!==a.f.length&&r(x,a))}function g(a,b){void 0===a.a&&(a.a=2,a.b=b,r(M,a))}function u(a,b,c,d){var e=a.f,f=e.length;a.d=null;e[f]=b;e[f+1]=c;e[f+2]=d;0===f&&a.a&&r(x,a)}function x(a){var b=a.f,c=a.a;if(0!==b.length){for(var d,e,f=a.b,g=0;g<b.length;g+=3)d=b[g],e=b[g+c],d?C(c,d,e,f):e(f);a.f.length=0}}function D(){this.error=
|
||||||
|
null}function C(a,b,c,d){var e=s(c),f,k,h,l;if(e){try{f=c(d)}catch(n){y.error=n,f=y}f===y?(l=!0,k=f.error,f=null):h=!0;if(b===f){g(b,new TypeError("A promises callback cannot return that same promise."));return}}else f=d,h=!0;void 0===b.a&&(e&&h?q(b,f):l?g(b,k):1===a?m(b,f):2===a&&g(b,f))}function N(a,b){try{b(function(b){q(a,b)},function(b){g(a,b)})}catch(c){g(a,c)}}function k(a,b,c,d){this.n=a;this.c=new a(p,d);this.i=c;this.o(b)?(this.m=b,this.e=this.length=b.length,this.l(),0===this.length?m(this.c,
|
||||||
|
this.b):(this.length=this.length||0,this.k(),0===this.e&&m(this.c,this.b))):g(this.c,this.p())}function h(a){O++;this.b=this.a=void 0;this.f=[];if(p!==a){if(!s(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof h))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");N(this,a)}}var E=Array.isArray?Array.isArray:function(a){return"[object Array]"===
|
||||||
|
Object.prototype.toString.call(a)},l=0,w="undefined"!==typeof window?window:{},B=w.MutationObserver||w.WebKitMutationObserver,w="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,n=Array(1E3),A;A="undefined"!==typeof process&&"[object process]"==={}.toString.call(process)?F():B?G():w?H():I();var v=new D,y=new D;k.prototype.o=function(a){return E(a)};k.prototype.p=function(){return Error("Array Methods must be provided an Array")};k.prototype.l=
|
||||||
|
function(){this.b=Array(this.length)};k.prototype.k=function(){for(var a=this.length,b=this.c,c=this.m,d=0;void 0===b.a&&d<a;d++)this.j(c[d],d)};k.prototype.j=function(a,b){var c=this.n;"object"===typeof a&&null!==a?a.constructor===c&&void 0!==a.a?(a.d=null,this.g(a.a,b,a.b)):this.q(c.resolve(a),b):(this.e--,this.b[b]=this.h(a))};k.prototype.g=function(a,b,c){var d=this.c;void 0===d.a&&(this.e--,this.i&&2===a?g(d,c):this.b[b]=this.h(c));0===this.e&&m(d,this.b)};k.prototype.h=function(a){return a};
|
||||||
|
k.prototype.q=function(a,b){var c=this;u(a,void 0,function(a){c.g(1,b,a)},function(a){c.g(2,b,a)})};var O=0;h.all=function(a,b){return(new k(this,a,!0,b)).c};h.race=function(a,b){function c(a){q(e,a)}function d(a){g(e,a)}var e=new this(p,b);if(!E(a))return (g(e,new TypeError("You must pass an array to race.")), e);for(var f=a.length,h=0;void 0===e.a&&h<f;h++)u(this.resolve(a[h]),void 0,c,d);return e};h.resolve=function(a,b){if(a&&"object"===typeof a&&a.constructor===this)return a;var c=new this(p,b);
|
||||||
|
q(c,a);return c};h.reject=function(a,b){var c=new this(p,b);g(c,a);return c};h.prototype={constructor:h,then:function(a,b,c){var d=this.a;if(1===d&&!a||2===d&&!b)return this;this.d=null;var e=new this.constructor(p,c),f=this.b;if(d){var g=arguments[d-1];r(function(){C(d,e,g,f)})}else u(this,e,a,b);return e},"catch":function(a,b){return this.then(null,a,b)}};var z={Promise:h,r:function(){var a;a="undefined"!==typeof global?global:"undefined"!==typeof window&&window.document?window:self;"Promise"in
|
||||||
|
a&&"resolve"in a.Promise&&"reject"in a.Promise&&"all"in a.Promise&&"race"in a.Promise&&function(){var b;new a.Promise(function(a){b=a});return s(b)}()||(a.Promise=h)}};"function"===typeof define&&define.amd?define(function(){return z}):"undefined"!==typeof module&&module.exports?module.exports=z:"undefined"!==typeof this&&(this.ES6Promise=z)}).call(this);
|
BIN
venv/Lib/site-packages/game/static/favicon.ico
Normal file
BIN
venv/Lib/site-packages/game/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
49
venv/Lib/site-packages/game/static/game.html
Normal file
49
venv/Lib/site-packages/game/static/game.html
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>LeTo's Game Emulator</title>
|
||||||
|
<script src="static/jquery.min.js"></script>
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="static/es6-promise.min.js"></script>
|
||||||
|
<script type="text/javascript" src="static/browserfs.min.js"></script>
|
||||||
|
<script src="static/loader.js"></script>
|
||||||
|
<script src="static/base.js"></script>
|
||||||
|
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'/>
|
||||||
|
<link rel="shortcut icon" href="static/favicon.ico">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="background-color: #ebebeb">
|
||||||
|
|
||||||
|
<div style="margin: 10rem 30rem">
|
||||||
|
<div id="main-wrapper" align="center">
|
||||||
|
<div id="emulator-container" style="width: 40rem; height: 30rem; ">
|
||||||
|
<div id="emularity-splash-screen" style="margin-top: 6rem"></div>
|
||||||
|
<canvas id="emularity-canvas"></canvas>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tool" align="center" style="margin-top: 2rem">
|
||||||
|
<button id="full" onclick="fullScreen()">Full Screen</button>
|
||||||
|
<button id="site" onclick="visitSite()">Support</button>
|
||||||
|
</div>
|
||||||
|
<div id="operation"
|
||||||
|
style="background-color: #d2d2d2; padding: 1rem; margin: 1rem; color: #4a4a4a; font-weight: 400">
|
||||||
|
Operations Guide:<br/><br/>
|
||||||
|
* Direction Key<br/>
|
||||||
|
* Start: 1 or option<br/>
|
||||||
|
* Select: 5<br/>
|
||||||
|
* A: alt<br/>
|
||||||
|
* B: ctrl<br/><br/>
|
||||||
|
|
||||||
|
Some game buttons need to explore by yourself.
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="footer" align="center" style="margin: 2rem 0; font-size: 0.9rem; font-weight: 300">
|
||||||
|
© leesoar.com | secure@tom.com
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
2
venv/Lib/site-packages/game/static/jquery.min.js
vendored
Normal file
2
venv/Lib/site-packages/game/static/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1965
venv/Lib/site-packages/game/static/loader.js
Normal file
1965
venv/Lib/site-packages/game/static/loader.js
Normal file
File diff suppressed because it is too large
Load Diff
40
venv/Lib/site-packages/game/static/mamenes.js
Normal file
40
venv/Lib/site-packages/game/static/mamenes.js
Normal file
File diff suppressed because one or more lines are too long
17266
venv/Lib/site-packages/game/static/mamenes_wasm.js
Normal file
17266
venv/Lib/site-packages/game/static/mamenes_wasm.js
Normal file
File diff suppressed because one or more lines are too long
BIN
venv/Lib/site-packages/game/static/mamenes_wasm.wasm
Normal file
BIN
venv/Lib/site-packages/game/static/mamenes_wasm.wasm
Normal file
Binary file not shown.
BIN
venv/Lib/site-packages/game/ui_1.jpg
Normal file
BIN
venv/Lib/site-packages/game/ui_1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 191 KiB |
BIN
venv/Lib/site-packages/game/ui_2.jpg
Normal file
BIN
venv/Lib/site-packages/game/ui_2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 364 KiB |
76
venv/Lib/site-packages/game/web.py
Normal file
76
venv/Lib/site-packages/game/web.py
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# @author: leesoar
|
||||||
|
|
||||||
|
"""web.py"""
|
||||||
|
import argparse
|
||||||
|
import os
|
||||||
|
import platform
|
||||||
|
|
||||||
|
from flask import request, Flask, jsonify, make_response
|
||||||
|
from game import __version__
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/', methods=["GET"])
|
||||||
|
def load_emulator():
|
||||||
|
return app.send_static_file('game.html')
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/api/file', methods=['GET', 'POST'])
|
||||||
|
def find_game():
|
||||||
|
try:
|
||||||
|
path = request.args.get("p")
|
||||||
|
resp = make_response(open(path, mode="rb").read())
|
||||||
|
resp.headers["Content-type"] = "application/octet-stream"
|
||||||
|
return resp
|
||||||
|
except FileNotFoundError:
|
||||||
|
return jsonify(dict(code=0, msg="File not exist.")), 202
|
||||||
|
|
||||||
|
|
||||||
|
@app.errorhandler(404)
|
||||||
|
def not_found(e):
|
||||||
|
return jsonify(dict(code=0, msg="not found")), 404
|
||||||
|
|
||||||
|
|
||||||
|
@app.errorhandler(500)
|
||||||
|
def svc_error(e):
|
||||||
|
return jsonify(dict(code=0, msg="error")), 500
|
||||||
|
|
||||||
|
|
||||||
|
def run_web(args):
|
||||||
|
try:
|
||||||
|
app.run(host='0.0.0.0', port=2345, debug=False)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def open_game(args):
|
||||||
|
os_type = platform.system()
|
||||||
|
url = f"http://localhost:2345?p={args.src}"
|
||||||
|
if os_type == "Windows":
|
||||||
|
return os.system(f"start {url}")
|
||||||
|
return os.system(f"open {url}")
|
||||||
|
|
||||||
|
|
||||||
|
def run():
|
||||||
|
parser = argparse.ArgumentParser(
|
||||||
|
description=f"A web game emulator, not only can play games. Welcome to explore.",
|
||||||
|
prog="game", add_help=False)
|
||||||
|
|
||||||
|
subparsers = parser.add_subparsers(dest='cmd', title='Available commands')
|
||||||
|
parser.add_argument('-v', '--version', action='version', version=__version__, help='Get version of game')
|
||||||
|
parser.add_argument('-h', '--help', action='help', help='Show help message')
|
||||||
|
|
||||||
|
p_web = subparsers.add_parser('web')
|
||||||
|
p_web.set_defaults(func=run_web)
|
||||||
|
|
||||||
|
p_play = subparsers.add_parser('play')
|
||||||
|
p_play.set_defaults(func=open_game)
|
||||||
|
p_play.add_argument('src', type=str, help="game absolute path")
|
||||||
|
|
||||||
|
try:
|
||||||
|
args = parser.parse_args()
|
||||||
|
args.func(args)
|
||||||
|
except Exception:
|
||||||
|
print("Error, check logs.")
|
1
venv/Lib/site-packages/pip-21.0.1.dist-info/INSTALLER
Normal file
1
venv/Lib/site-packages/pip-21.0.1.dist-info/INSTALLER
Normal file
@ -0,0 +1 @@
|
|||||||
|
pip
|
20
venv/Lib/site-packages/pip-21.0.1.dist-info/LICENSE.txt
Normal file
20
venv/Lib/site-packages/pip-21.0.1.dist-info/LICENSE.txt
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
92
venv/Lib/site-packages/pip-21.0.1.dist-info/METADATA
Normal file
92
venv/Lib/site-packages/pip-21.0.1.dist-info/METADATA
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
Metadata-Version: 2.1
|
||||||
|
Name: pip
|
||||||
|
Version: 21.0.1
|
||||||
|
Summary: The PyPA recommended tool for installing Python packages.
|
||||||
|
Home-page: https://pip.pypa.io/
|
||||||
|
Author: The pip developers
|
||||||
|
Author-email: distutils-sig@python.org
|
||||||
|
License: MIT
|
||||||
|
Project-URL: Documentation, https://pip.pypa.io
|
||||||
|
Project-URL: Source, https://github.com/pypa/pip
|
||||||
|
Project-URL: Changelog, https://pip.pypa.io/en/stable/news/
|
||||||
|
Keywords: distutils easy_install egg setuptools wheel virtualenv
|
||||||
|
Platform: UNKNOWN
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: MIT License
|
||||||
|
Classifier: Topic :: Software Development :: Build Tools
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.6
|
||||||
|
Classifier: Programming Language :: Python :: 3.7
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Requires-Python: >=3.6
|
||||||
|
|
||||||
|
pip - The Python Package Installer
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/pip.svg
|
||||||
|
:target: https://pypi.org/project/pip/
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/pip/badge/?version=latest
|
||||||
|
:target: https://pip.pypa.io/en/latest
|
||||||
|
|
||||||
|
pip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.
|
||||||
|
|
||||||
|
Please take a look at our documentation for how to install and use pip:
|
||||||
|
|
||||||
|
* `Installation`_
|
||||||
|
* `Usage`_
|
||||||
|
|
||||||
|
We release updates regularly, with a new version every 3 months. Find more details in our documentation:
|
||||||
|
|
||||||
|
* `Release notes`_
|
||||||
|
* `Release process`_
|
||||||
|
|
||||||
|
In pip 20.3, we've `made a big improvement to the heart of pip`_; `learn more`_. We want your input, so `sign up for our user experience research studies`_ to help us do it right.
|
||||||
|
|
||||||
|
**Note**: pip 21.0, in January 2021, removed Python 2 support, per pip's `Python 2 support policy`_. Please migrate to Python 3.
|
||||||
|
|
||||||
|
If you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:
|
||||||
|
|
||||||
|
* `Issue tracking`_
|
||||||
|
* `Discourse channel`_
|
||||||
|
* `User IRC`_
|
||||||
|
|
||||||
|
If you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:
|
||||||
|
|
||||||
|
* `GitHub page`_
|
||||||
|
* `Development documentation`_
|
||||||
|
* `Development mailing list`_
|
||||||
|
* `Development IRC`_
|
||||||
|
|
||||||
|
Code of Conduct
|
||||||
|
---------------
|
||||||
|
|
||||||
|
Everyone interacting in the pip project's codebases, issue trackers, chat
|
||||||
|
rooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.
|
||||||
|
|
||||||
|
.. _package installer: https://packaging.python.org/guides/tool-recommendations/
|
||||||
|
.. _Python Package Index: https://pypi.org
|
||||||
|
.. _Installation: https://pip.pypa.io/en/stable/installing.html
|
||||||
|
.. _Usage: https://pip.pypa.io/en/stable/
|
||||||
|
.. _Release notes: https://pip.pypa.io/en/stable/news.html
|
||||||
|
.. _Release process: https://pip.pypa.io/en/latest/development/release-process/
|
||||||
|
.. _GitHub page: https://github.com/pypa/pip
|
||||||
|
.. _Development documentation: https://pip.pypa.io/en/latest/development
|
||||||
|
.. _made a big improvement to the heart of pip: https://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html
|
||||||
|
.. _learn more: https://pip.pypa.io/en/latest/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020
|
||||||
|
.. _sign up for our user experience research studies: https://pyfound.blogspot.com/2020/03/new-pip-resolver-to-roll-out-this-year.html
|
||||||
|
.. _Python 2 support policy: https://pip.pypa.io/en/latest/development/release-process/#python-2-support
|
||||||
|
.. _Issue tracking: https://github.com/pypa/pip/issues
|
||||||
|
.. _Discourse channel: https://discuss.python.org/c/packaging
|
||||||
|
.. _Development mailing list: https://mail.python.org/mailman3/lists/distutils-sig.python.org/
|
||||||
|
.. _User IRC: https://webchat.freenode.net/?channels=%23pypa
|
||||||
|
.. _Development IRC: https://webchat.freenode.net/?channels=%23pypa-dev
|
||||||
|
.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
|
||||||
|
|
||||||
|
|
761
venv/Lib/site-packages/pip-21.0.1.dist-info/RECORD
Normal file
761
venv/Lib/site-packages/pip-21.0.1.dist-info/RECORD
Normal file
@ -0,0 +1,761 @@
|
|||||||
|
../../Scripts/pip.exe,sha256=mFGD80PpkB2568Ll0Veta4aI4i3FBsZu-SwuvsNUcdM,106395
|
||||||
|
../../Scripts/pip3.9.exe,sha256=mFGD80PpkB2568Ll0Veta4aI4i3FBsZu-SwuvsNUcdM,106395
|
||||||
|
../../Scripts/pip3.exe,sha256=mFGD80PpkB2568Ll0Veta4aI4i3FBsZu-SwuvsNUcdM,106395
|
||||||
|
pip-21.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||||
|
pip-21.0.1.dist-info/LICENSE.txt,sha256=ejlw8iXn2TntLdOpADqlISSc1qhJJgiYAKMZmq713Gk,1110
|
||||||
|
pip-21.0.1.dist-info/METADATA,sha256=a6mCPyb1qd3cdVI5OorlrDhSN3HHYiN8feJrxmL4QgY,4168
|
||||||
|
pip-21.0.1.dist-info/RECORD,,
|
||||||
|
pip-21.0.1.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
||||||
|
pip-21.0.1.dist-info/entry_points.txt,sha256=5ExSa1s54zSPNA_1epJn5SX06786S8k5YHwskMvVYzw,125
|
||||||
|
pip-21.0.1.dist-info/top_level.txt,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||||
|
pip/__init__.py,sha256=N22Wk52M-ZwIU8jx64XlNaLmHk_MyL1ErZ_71RG1Pzo,473
|
||||||
|
pip/__main__.py,sha256=WGRSG7tdJrjefIHsZOk977H_rgkSt9z2liew-Cwm09U,874
|
||||||
|
pip/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/__pycache__/__main__.cpython-39.pyc,,
|
||||||
|
pip/_internal/__init__.py,sha256=fnY9L5BJfq79L8CXhLnj2nJMH8-JEpJkGQAMhM231AU,512
|
||||||
|
pip/_internal/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/build_env.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/cache.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/configuration.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/exceptions.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/locations.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/main.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/pyproject.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/self_outdated_check.cpython-39.pyc,,
|
||||||
|
pip/_internal/__pycache__/wheel_builder.cpython-39.pyc,,
|
||||||
|
pip/_internal/build_env.py,sha256=mEgguVg9YnwbVVLtwUlDF5irYsweDksk67obP0KAjE8,8323
|
||||||
|
pip/_internal/cache.py,sha256=j4UrFmwo2xC0e1QQUVAwPVuySmQttDUGJb-myD4t-Q8,10385
|
||||||
|
pip/_internal/cli/__init__.py,sha256=9gMw_A_StJXzDh2Rhxil6bd8tFP-ZR719Q1pINHAw5I,136
|
||||||
|
pip/_internal/cli/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/autocompletion.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/base_command.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/cmdoptions.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/command_context.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/main.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/main_parser.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/parser.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/progress_bars.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/req_command.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/spinners.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/__pycache__/status_codes.cpython-39.pyc,,
|
||||||
|
pip/_internal/cli/autocompletion.py,sha256=9iPihFS8MgmENqlAQOd80nPO3XWXNbl4yTFb-ZUIn1k,6711
|
||||||
|
pip/_internal/cli/base_command.py,sha256=phmb0p-uI7fkc3yulvrjKvLwkoGwLXoejcvLJNX51s8,8127
|
||||||
|
pip/_internal/cli/cmdoptions.py,sha256=WAXEdfKiz4dlEm4zGd_I9GY-jbpjBo83_2nDjPJCGos,29547
|
||||||
|
pip/_internal/cli/command_context.py,sha256=edx8WCi04cZ-1jfMg3PnngxSwr2ZvlmSDdEAMsjfOvo,978
|
||||||
|
pip/_internal/cli/main.py,sha256=elYNVqbCVwh1I2uKioP8YPCCoSEn_jOUXtS9zgb_ymE,2641
|
||||||
|
pip/_internal/cli/main_parser.py,sha256=nWAmIGPraVBAV0lwg7prBPcTpqzZ8r0H7mm3d05QrfM,2894
|
||||||
|
pip/_internal/cli/parser.py,sha256=_rp5QCCrsxFsBOKSt5CAMxSOqv0RjDgZBAnih6viO9k,10404
|
||||||
|
pip/_internal/cli/progress_bars.py,sha256=3DmxcO5HuBVpXFGKGGi5p_seeUiI4X_XV3Tl4qMg0PU,9083
|
||||||
|
pip/_internal/cli/req_command.py,sha256=oIwJ9DbEV4tCT8-bKOvKmGwdGeXXX4NkAgqmI70-NJc,16470
|
||||||
|
pip/_internal/cli/spinners.py,sha256=JJKIdn76dBD6xGrBvXigjnzJtIHZeZfB5gzMOH_LHiw,5614
|
||||||
|
pip/_internal/cli/status_codes.py,sha256=1xaB32lG8Nf1nMl_6e0yy5z2Iyvv81OTUpuHwXgGsfU,122
|
||||||
|
pip/_internal/commands/__init__.py,sha256=FknHsVy_gYqpY6Y0zKae3kFyIqQHG32ptp09w8jzSoA,3866
|
||||||
|
pip/_internal/commands/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/cache.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/check.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/completion.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/configuration.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/debug.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/download.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/freeze.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/hash.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/help.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/install.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/list.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/search.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/show.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/uninstall.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/__pycache__/wheel.cpython-39.pyc,,
|
||||||
|
pip/_internal/commands/cache.py,sha256=s-5zrlvMcgDCIT0pS7fsGm6gO51JZeU5nqRgTLS7r8g,7737
|
||||||
|
pip/_internal/commands/check.py,sha256=3_wGQDSB_vNe6WLoN-oOwJJcSRov6vq5vP1wf0bUUfw,1728
|
||||||
|
pip/_internal/commands/completion.py,sha256=9JoflBglg7tTYAHMU3RGQ9hpM632aWlp0UNXe7qADU4,3137
|
||||||
|
pip/_internal/commands/configuration.py,sha256=YFrjdGREeyXerrhgWAgtEDfKxQ4Gwhl8GH9PyY1FkC4,9599
|
||||||
|
pip/_internal/commands/debug.py,sha256=NiJHfTo3RpMubodWygd99vxgwZhA10JhfwKTRBccwt8,7150
|
||||||
|
pip/_internal/commands/download.py,sha256=7QQ6MpSOBv0E1sXlD7m9OlxBD13PDsarJVrGYp3wKHk,5227
|
||||||
|
pip/_internal/commands/freeze.py,sha256=mH5TWSL9eQ1dwcd87CapJvWLG0XRPcNzKeZiUyv326s,3628
|
||||||
|
pip/_internal/commands/hash.py,sha256=6qN_SwOyWw93m44BBaq4nlRc2C7cJxFyXIMwRHZBc5c,1864
|
||||||
|
pip/_internal/commands/help.py,sha256=bh7rxWxR3_ZUhk3QCqfkreSftcUY0ijPX1eeR0z6SfM,1282
|
||||||
|
pip/_internal/commands/install.py,sha256=TNUBOFuF7oysQFG95k3aIE-5EIJNaYIShrVprDq6HyQ,28014
|
||||||
|
pip/_internal/commands/list.py,sha256=o-vhJtkGZ5Y5X0UIa9FJFTa_aLkFCNof_U3ltzAksC4,11753
|
||||||
|
pip/_internal/commands/search.py,sha256=F8Ab9LbsHLUGv79ZWa_vnCGN8DZ54iHX-yFRPU9gXak,6124
|
||||||
|
pip/_internal/commands/show.py,sha256=iEAH0ehpOGM9rP9DpkYJNZqfd5a2yL82GF37tZ2S7Yc,7140
|
||||||
|
pip/_internal/commands/uninstall.py,sha256=lOow-0Ja0CecV0kQjg7l019PAAa19P8M8alCUM4VoxQ,3364
|
||||||
|
pip/_internal/commands/wheel.py,sha256=TVjbMZ7BMB1pRGeAZ8z3zGdk7ZnTL76x6iSg6GYI4Fc,6931
|
||||||
|
pip/_internal/configuration.py,sha256=5ph7m7u6j3eNlVTJIFSLMaRPl2m8mesTmAEBLG0dCPY,14225
|
||||||
|
pip/_internal/distributions/__init__.py,sha256=FFd96Mt1zxxzsFEzbR3yL1rDmQkDhWnnLhMR6LlzboU,983
|
||||||
|
pip/_internal/distributions/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/distributions/__pycache__/base.cpython-39.pyc,,
|
||||||
|
pip/_internal/distributions/__pycache__/installed.cpython-39.pyc,,
|
||||||
|
pip/_internal/distributions/__pycache__/sdist.cpython-39.pyc,,
|
||||||
|
pip/_internal/distributions/__pycache__/wheel.cpython-39.pyc,,
|
||||||
|
pip/_internal/distributions/base.py,sha256=Gb1nPCK39r1jmOcSbqMr-Tp5rDpB9p1BfpTqZDt4XpU,1385
|
||||||
|
pip/_internal/distributions/installed.py,sha256=_FosTYlkY8U7BrJbyJlTLmKpVhHzIYBeaxWhn2THEbM,786
|
||||||
|
pip/_internal/distributions/sdist.py,sha256=mbNJcb6oMuQLr4wJWKZTNldZQSQmKZJuPQk7FWPJYbg,4182
|
||||||
|
pip/_internal/distributions/wheel.py,sha256=fu3BFBDAmhgYu2ce12TsvpcCBfuMMFwIkj9nNy0gskQ,1332
|
||||||
|
pip/_internal/exceptions.py,sha256=hakQGwr-evbRl1NmTPqzD04fk3Lc22rtCm8EtN_JNXA,13158
|
||||||
|
pip/_internal/index/__init__.py,sha256=x0ifDyFChwwQC4V_eHBFF1fvzLwbXRYG3nq15-Axy24,32
|
||||||
|
pip/_internal/index/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/index/__pycache__/collector.cpython-39.pyc,,
|
||||||
|
pip/_internal/index/__pycache__/package_finder.cpython-39.pyc,,
|
||||||
|
pip/_internal/index/collector.py,sha256=tkMhV8szxUKFewRB-WeJB2eZu5VciVuNWlq3jgDcwOI,22547
|
||||||
|
pip/_internal/index/package_finder.py,sha256=5c1zFdAwfIZzEQFArPnoEbAYeLtNMGVJfKl8vydSOl4,37800
|
||||||
|
pip/_internal/locations.py,sha256=VEtA-xzIiZifWmU8YrTGsovl9TPQfE0zrTRn_MGEcSA,6485
|
||||||
|
pip/_internal/main.py,sha256=4U06fJfknPpyb5T_SBkohFNOAde0-qIcAD0EXsvACM4,453
|
||||||
|
pip/_internal/models/__init__.py,sha256=j2kiRfNTH6h5JVP5yO_N2Yn0DqiNzJUtaPjHe2xMcgg,65
|
||||||
|
pip/_internal/models/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/candidate.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/direct_url.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/format_control.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/index.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/link.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/scheme.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/search_scope.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/selection_prefs.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/target_python.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/__pycache__/wheel.cpython-39.pyc,,
|
||||||
|
pip/_internal/models/candidate.py,sha256=WMx9i7VnMtcraKXDWBSxR_WOECCEiopWy8LUcntUrvw,1208
|
||||||
|
pip/_internal/models/direct_url.py,sha256=GGLCpPIGVKKYOR-0Lp55cGc0lPMoPWsUumWChA4BiDY,6913
|
||||||
|
pip/_internal/models/format_control.py,sha256=YUBHSFsmBxmGDJytEJhCOA6YWaUcRq6ufvWlleehqKI,2802
|
||||||
|
pip/_internal/models/index.py,sha256=idYm7uI8E8NQ9Sy3MqhnnRphnDmN4iTj5UbY5f7Llcg,1126
|
||||||
|
pip/_internal/models/link.py,sha256=ZnNyXIo5Pn2YC_63q1CFOdrS_GdEMOjyolXk6_69adE,7639
|
||||||
|
pip/_internal/models/scheme.py,sha256=sZ18s2TzMgmHZzwm8PMDX-hy4wxTQrSKUoNcCYS2F34,801
|
||||||
|
pip/_internal/models/search_scope.py,sha256=GLnSaJKgMsSuCqCatTmDypSiKZI6Ny1CgRCX2GPTFoA,4835
|
||||||
|
pip/_internal/models/selection_prefs.py,sha256=gY2ynXkzHLKBL1UZ2d5Pl6Q4m-Mp6CPg-ufZesUxyEY,2087
|
||||||
|
pip/_internal/models/target_python.py,sha256=x57cmp9eb9zHZXncctwAdL4H1Rx_J27U5gaYrCQ2u7M,4169
|
||||||
|
pip/_internal/models/wheel.py,sha256=KFKEmqRIScyHEfqovopluujgd1uRXZMTsWte5Eh9sPY,2834
|
||||||
|
pip/_internal/network/__init__.py,sha256=IEtuAPVGqBTS0C7M0KJ95xqGcA76coOc2AsDcgIBP-8,52
|
||||||
|
pip/_internal/network/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/__pycache__/auth.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/__pycache__/cache.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/__pycache__/download.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/__pycache__/lazy_wheel.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/__pycache__/session.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/__pycache__/utils.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/__pycache__/xmlrpc.cpython-39.pyc,,
|
||||||
|
pip/_internal/network/auth.py,sha256=svvGxUsGxBmqNmX8T4kPi9PvZpe1eCBTZJk8rFkzkcw,11895
|
||||||
|
pip/_internal/network/cache.py,sha256=zUu27h3fS78yIeSNuEB9sq_2GjFJ6S2RpRLCwQSFy64,2378
|
||||||
|
pip/_internal/network/download.py,sha256=UONxxUxEwgNEfFN_lappdU_6NBa4RXqZ00LeHBOuL20,6587
|
||||||
|
pip/_internal/network/lazy_wheel.py,sha256=Qgl8wi3_188W4nOjKi-L_J3OUqUKq0Ge0dDsxTSCFaY,8293
|
||||||
|
pip/_internal/network/session.py,sha256=5N0_AdbQ_RnFLd2fg9ZMSuz22iaBSnM27LIoNotAtgQ,15643
|
||||||
|
pip/_internal/network/utils.py,sha256=BpdHEUSN7ONrdradjr8BEe2mL5rlj8xFFtmYbMzhHz0,4266
|
||||||
|
pip/_internal/network/xmlrpc.py,sha256=GgX5TAU3s50jlAmdwaUG7m_iV06rbPtaI5_NGd53AVo,1871
|
||||||
|
pip/_internal/operations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_internal/operations/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/__pycache__/check.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/__pycache__/freeze.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/__pycache__/prepare.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/build/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_internal/operations/build/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/build/__pycache__/metadata.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/build/__pycache__/metadata_legacy.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/build/__pycache__/wheel.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/build/__pycache__/wheel_legacy.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/build/metadata.py,sha256=R1ir---xEH_Nx93KgH-tWYbkUYe64aQFLEO_b2NddEE,1293
|
||||||
|
pip/_internal/operations/build/metadata_legacy.py,sha256=oqD7-jGQSHUxP90E2muEbwbjz5Bh1N1nUWWKxWOpwjI,2080
|
||||||
|
pip/_internal/operations/build/wheel.py,sha256=9O1d7GiejX4V0d6jKNXc9TvuY0_CYg5a9L41UpFrB_o,1505
|
||||||
|
pip/_internal/operations/build/wheel_legacy.py,sha256=hJ4tiC_fFzyIM2uoAFfd4Fk-CBD1AeJJyw_XZOFBlN4,3426
|
||||||
|
pip/_internal/operations/check.py,sha256=WFd1l5wlpyOL7u8dZsSFDi9lzoZ-lRA7L1VLYiYH2kY,5371
|
||||||
|
pip/_internal/operations/freeze.py,sha256=JNF8zG9BuqJ2fWJgQZV0H7eaiKdMNNLx5xc8gvlA9k0,10442
|
||||||
|
pip/_internal/operations/install/__init__.py,sha256=Zug2xxRJjeI2LdVd45iwmeavUBYXA4ltbhFFwc4BEOg,53
|
||||||
|
pip/_internal/operations/install/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/install/__pycache__/editable_legacy.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/install/__pycache__/legacy.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/install/__pycache__/wheel.cpython-39.pyc,,
|
||||||
|
pip/_internal/operations/install/editable_legacy.py,sha256=gEMhkmuxJ0wfqKspmhu_i41Ltq1_F-4IrTYPxsWVxEw,1540
|
||||||
|
pip/_internal/operations/install/legacy.py,sha256=8aby3xQI90LPZOx7uDWvBV2cehOpGkj4Lb4js7bCrZA,4403
|
||||||
|
pip/_internal/operations/install/wheel.py,sha256=dCig7D4jT4PMjtyLuhuMwDfD8kzXgN9ra8B9uyeMUYg,31158
|
||||||
|
pip/_internal/operations/prepare.py,sha256=t5rXOX388PznqycvpLNGYRLpCcqsniKtmAzY9FSvXQg,22142
|
||||||
|
pip/_internal/pyproject.py,sha256=yxwQz1Ib3r2dX6mp6qecZwiDThLK13eT2dkWW67swkA,7333
|
||||||
|
pip/_internal/req/__init__.py,sha256=BUtbA3pab69f5WjMnLnkoXTEKSo8ZxEFsaYyf0Ql8m0,3170
|
||||||
|
pip/_internal/req/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/req/__pycache__/constructors.cpython-39.pyc,,
|
||||||
|
pip/_internal/req/__pycache__/req_file.cpython-39.pyc,,
|
||||||
|
pip/_internal/req/__pycache__/req_install.cpython-39.pyc,,
|
||||||
|
pip/_internal/req/__pycache__/req_set.cpython-39.pyc,,
|
||||||
|
pip/_internal/req/__pycache__/req_tracker.cpython-39.pyc,,
|
||||||
|
pip/_internal/req/__pycache__/req_uninstall.cpython-39.pyc,,
|
||||||
|
pip/_internal/req/constructors.py,sha256=-AhfcM1mO5Ng105XMcyA2k2ylp_rK513b4dPJZUbmRs,16035
|
||||||
|
pip/_internal/req/req_file.py,sha256=Uaga43m7o24fKKwZEJmgFMmdSd-t-mV5Zvp8VwzDpiw,18552
|
||||||
|
pip/_internal/req/req_install.py,sha256=PHz0mt8zWwRBxn8kcWPmt_eu1i3HHwUMjmFaQ-hl3TI,33145
|
||||||
|
pip/_internal/req/req_set.py,sha256=CcW_X-n0cB81rmEixPOBmalXg7hOI4aOHMf19s1TVpA,8013
|
||||||
|
pip/_internal/req/req_tracker.py,sha256=DcFBkSFp2ysr5x90NExMHlwus15mclFDj4_vNJrYcTk,4656
|
||||||
|
pip/_internal/req/req_uninstall.py,sha256=TAfa5mYhhIYpnIITDz6hUy1z00ME_mybAhx0eekhp1s,24255
|
||||||
|
pip/_internal/resolution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_internal/resolution/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/__pycache__/base.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/base.py,sha256=df4S86qAB5UMkgzJ3ZNgxtkHusg9UywRF2J8ef91qPw,696
|
||||||
|
pip/_internal/resolution/legacy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_internal/resolution/legacy/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/legacy/__pycache__/resolver.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/legacy/resolver.py,sha256=mXfkbMGIUMYmdHkH7esyyLYKpuhIsvhKgPD_P884QXI,18692
|
||||||
|
pip/_internal/resolution/resolvelib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/base.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/candidates.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/found_candidates.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/reporter.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/__pycache__/resolver.cpython-39.pyc,,
|
||||||
|
pip/_internal/resolution/resolvelib/base.py,sha256=pCjC_evBGsbYZhseXluXMCKkyAS-LNkqRqSj-AHkXdw,5193
|
||||||
|
pip/_internal/resolution/resolvelib/candidates.py,sha256=hOC1JSpzE0Yt-4J9l7G7tUIBSIyWBUVF6JaowJJ1a_8,20211
|
||||||
|
pip/_internal/resolution/resolvelib/factory.py,sha256=avshtHNs5nrlExEbDcTLBMnlkNGXwQBUkSHX0Kk9Yxc,19228
|
||||||
|
pip/_internal/resolution/resolvelib/found_candidates.py,sha256=P5C46Bj91edImB8tUNFkC5Zr75HhGgwrY6cjRbMf3fs,5479
|
||||||
|
pip/_internal/resolution/resolvelib/provider.py,sha256=7_LjNcubdcjMEnehHiaN3iewSPu4m4coS2mTT7PQzp8,7513
|
||||||
|
pip/_internal/resolution/resolvelib/reporter.py,sha256=-bdsWDecNezUPSWbSHEX-xNyVP8Tkd0zO96bhxFr1Vg,2941
|
||||||
|
pip/_internal/resolution/resolvelib/requirements.py,sha256=mRJLY0Rc_muoYqZ7XDEYYmJN7Aw4L3sq4ywKimy_UZE,6162
|
||||||
|
pip/_internal/resolution/resolvelib/resolver.py,sha256=MgZmX_N5J5xqwc-f0tvNyjnFCfWbrgtUlWmCHOh677g,11912
|
||||||
|
pip/_internal/self_outdated_check.py,sha256=JsHoDtt7VjsGO7ADfj-SvUlU-Ul_B_RI9pTA0ma1ZLI,6858
|
||||||
|
pip/_internal/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_internal/utils/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/appdirs.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/compat.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/compatibility_tags.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/datetime.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/deprecation.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/direct_url_helpers.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/distutils_args.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/encoding.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/entrypoints.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/filesystem.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/filetypes.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/glibc.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/hashes.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/inject_securetransport.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/logging.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/misc.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/models.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/packaging.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/parallel.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/pkg_resources.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/setuptools_build.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/subprocess.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/temp_dir.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/typing.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/unpacking.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/urls.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/virtualenv.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/__pycache__/wheel.cpython-39.pyc,,
|
||||||
|
pip/_internal/utils/appdirs.py,sha256=AyrjuIvYUfsCa7CncTTUOg1BxlERcwI42pSWZmsnNNM,1351
|
||||||
|
pip/_internal/utils/compat.py,sha256=IQCUn_HI5WEB6UJrwQ19nmTKmrqTF_eQU7And3MbikM,5274
|
||||||
|
pip/_internal/utils/compatibility_tags.py,sha256=Ef2fJYjWAqnFPMeR0FOlxTh47lu0SBrenQm0kxf-J2g,5816
|
||||||
|
pip/_internal/utils/datetime.py,sha256=OLKI87v18hQDVOyRMuyPX15nbCUWO4rMc9bAm2KpkGc,267
|
||||||
|
pip/_internal/utils/deprecation.py,sha256=jIp8XEEK76VrUV9LgEA_i9nhriAYWUvU5Oly1L9YyKw,3380
|
||||||
|
pip/_internal/utils/direct_url_helpers.py,sha256=vnN-_foyl_4ooLdhmrudTxfWLaIBgstyxPENL2mS2H4,4152
|
||||||
|
pip/_internal/utils/distutils_args.py,sha256=conKwlSsvwBEnIISbWnqEwZwch-kyq3hQ0nKOBWPIm4,1398
|
||||||
|
pip/_internal/utils/encoding.py,sha256=QAG90ZRmRCTA80YHRwjdvLQVFCRmhkxebvhgDBawWyY,1317
|
||||||
|
pip/_internal/utils/entrypoints.py,sha256=CwZKpoIbCxxCTV91Nkz6ReFZQnrSGBbruipbiGoaCLY,1183
|
||||||
|
pip/_internal/utils/filesystem.py,sha256=OaK_UFxXDjXOvAPuNE-bb8eeuwbdZcHnVCN18yAK-98,6389
|
||||||
|
pip/_internal/utils/filetypes.py,sha256=tvz0Rml52zC_GZfgQxhdR10vP0qAxED-3cDyPrdFajM,873
|
||||||
|
pip/_internal/utils/glibc.py,sha256=VZsrQxHLTFxZWWKcEDi7x6jIE-qwF8reZC6_m8MyhMw,3353
|
||||||
|
pip/_internal/utils/hashes.py,sha256=DB6Pd5fCdWq-lMRfEE2mMCTkjmPfMTfgmqMzMmk50WE,5203
|
||||||
|
pip/_internal/utils/inject_securetransport.py,sha256=-ATb-4xYRxDqnAoJY5z6sflj1O0XF81Hk2tEroxrSo8,846
|
||||||
|
pip/_internal/utils/logging.py,sha256=IZ2eLA6UyI9n3cK5nJED7Z4PBb4dv4Y5CopQHxUjwj4,11448
|
||||||
|
pip/_internal/utils/misc.py,sha256=yxEkMv1xYRa_GLbb6qDuLWx5jwYksAnlrugbpx-30p0,27604
|
||||||
|
pip/_internal/utils/models.py,sha256=CSUxzZEuh9va4KE5tUpOtjVW7a8Pd003XVI4eNMgXSE,1151
|
||||||
|
pip/_internal/utils/packaging.py,sha256=UEZLCFmt-9BiRBfmLwWlt8D2nGkpLIReRq7gzGYLLMI,3089
|
||||||
|
pip/_internal/utils/parallel.py,sha256=Hb_H-6sptwWCN4VGzEwbs8_rxh6B6q8FBkgIBM2Dz-M,3432
|
||||||
|
pip/_internal/utils/pkg_resources.py,sha256=LD_Y6KCr0MEBbt4KDWe1r077l9qpeUUd61o18TEhE_Q,1282
|
||||||
|
pip/_internal/utils/setuptools_build.py,sha256=OQO4vmlFjXWPFTdQwTnMzpUOi9OPtYdq6tbZ1rL8YCI,5239
|
||||||
|
pip/_internal/utils/subprocess.py,sha256=UX9CHNORjhqVcedNG1Jjwsl0Kw40v63Dso7RmpwmvFc,11078
|
||||||
|
pip/_internal/utils/temp_dir.py,sha256=G2qWEirX_8ablfvxKzkHFIh2jCBF4OfOCrzgBDFUuIY,8983
|
||||||
|
pip/_internal/utils/typing.py,sha256=6T7qX9SYEJMUwgn2ZqdhM-SSmDwWTIzRHkeL49Q10-I,1439
|
||||||
|
pip/_internal/utils/unpacking.py,sha256=4AvWThNDIpEA0GdO9GUSSN2VLnp9HPDOxTMhcm8_KO8,9464
|
||||||
|
pip/_internal/utils/urls.py,sha256=Z3ClgEtfZIdrU-YLRA6uVVMvejy-EwdxzrnqjZj0eu8,1452
|
||||||
|
pip/_internal/utils/virtualenv.py,sha256=Hm8fXwb_xWBt-HxD-0wEasli_BA6eB3RWVVkyzwS37s,3769
|
||||||
|
pip/_internal/utils/wheel.py,sha256=WeowquCm4hd7REee-RX0Q-t6Yq11db9ze6bY4OFaWLs,7304
|
||||||
|
pip/_internal/vcs/__init__.py,sha256=Ovj2REzS3fFosLAKw5lnd3CX76J2nN9b1FNY6KluBgE,632
|
||||||
|
pip/_internal/vcs/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_internal/vcs/__pycache__/bazaar.cpython-39.pyc,,
|
||||||
|
pip/_internal/vcs/__pycache__/git.cpython-39.pyc,,
|
||||||
|
pip/_internal/vcs/__pycache__/mercurial.cpython-39.pyc,,
|
||||||
|
pip/_internal/vcs/__pycache__/subversion.cpython-39.pyc,,
|
||||||
|
pip/_internal/vcs/__pycache__/versioncontrol.cpython-39.pyc,,
|
||||||
|
pip/_internal/vcs/bazaar.py,sha256=9QxXZaQY4rCnfJ4rbHHqDQTdb248-fy3cS_wuF_A5YQ,3786
|
||||||
|
pip/_internal/vcs/git.py,sha256=jwXPCDxSUq03H23c0dVg9x3nr8jAtEoZytFl_UTFFoI,15935
|
||||||
|
pip/_internal/vcs/mercurial.py,sha256=_aONuC99EOc_UOP4rOp29dzcea7oefVu5fm6LY4y9IE,5705
|
||||||
|
pip/_internal/vcs/subversion.py,sha256=cZpJVzGN11yxVLAYcm9PcrZ65C2gChDACL1cd952snk,13019
|
||||||
|
pip/_internal/vcs/versioncontrol.py,sha256=WMBOrxHPzV3SE8tL8-slNM6d9M4HlOMd9xLehZZ6wmM,23848
|
||||||
|
pip/_internal/wheel_builder.py,sha256=_ZomhgGv70RyqYe0FPyYkPFuQEwl3jJ-jOCJWBfaCSk,12202
|
||||||
|
pip/_vendor/__init__.py,sha256=xsgffPuXJIsmc6cAP0jW-u7WUZ8TMF35kfixn9lmPMk,4902
|
||||||
|
pip/_vendor/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/__pycache__/appdirs.cpython-39.pyc,,
|
||||||
|
pip/_vendor/__pycache__/contextlib2.cpython-39.pyc,,
|
||||||
|
pip/_vendor/__pycache__/distro.cpython-39.pyc,,
|
||||||
|
pip/_vendor/__pycache__/pyparsing.cpython-39.pyc,,
|
||||||
|
pip/_vendor/__pycache__/retrying.cpython-39.pyc,,
|
||||||
|
pip/_vendor/__pycache__/six.cpython-39.pyc,,
|
||||||
|
pip/_vendor/appdirs.py,sha256=Od1rs7d0yMmHLUc0FQn2DleIUbC--EEmM-UtXvFqAjM,26540
|
||||||
|
pip/_vendor/cachecontrol/__init__.py,sha256=SR74BEsga7Z2I6-CH8doh2Oq_vH0GG7RCwjJg7TntdI,313
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/adapter.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/cache.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/controller.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/serialize.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/_cmd.py,sha256=KIO6PIJoXmNr5RGS2pZjDum1-40oR4fw5kE0LguxrY4,1352
|
||||||
|
pip/_vendor/cachecontrol/adapter.py,sha256=FBRrYfpkXaH8hKogEgw6wYCScnL2SJFDZlHBNF0EvLE,5015
|
||||||
|
pip/_vendor/cachecontrol/cache.py,sha256=gCo5R0D__iptJ49dUfxwWfu2Lc2OjpDs-MERy2hTpK8,844
|
||||||
|
pip/_vendor/cachecontrol/caches/__init__.py,sha256=rN8Ox5dd2ucPtgkybgz77XfTTUL4HFTO2-n2ACK2q3E,88
|
||||||
|
pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-39.pyc,,
|
||||||
|
pip/_vendor/cachecontrol/caches/file_cache.py,sha256=tw35e4ZnOsxqrlZ2fQ2VYz2FlUlCbFMerNu2tPwtRHY,4299
|
||||||
|
pip/_vendor/cachecontrol/caches/redis_cache.py,sha256=hFJ_J9MCUTjblJCBT_cV_glP--2toqHDCKLRGUIHSOQ,889
|
||||||
|
pip/_vendor/cachecontrol/compat.py,sha256=3BisP29GBHAo0QxUrbpBsMeXSp8YzKQcGHwEW7VYU2U,724
|
||||||
|
pip/_vendor/cachecontrol/controller.py,sha256=fTDK1V7NjpnU1hwfMboX4Vyh73-uWgL6QkghtvvyTrY,14525
|
||||||
|
pip/_vendor/cachecontrol/filewrapper.py,sha256=YsK9ISeZg26n-rS0z7MdEcMTyQ9gW_fLb6zIRJvE2rg,2613
|
||||||
|
pip/_vendor/cachecontrol/heuristics.py,sha256=yndlfXHJZ5u_TC1ECrV4fVl68OuWiXnDS0HPyscK1MM,4205
|
||||||
|
pip/_vendor/cachecontrol/serialize.py,sha256=7Jq5PcVBH6RVI-qkKkQsV5yAiZCFQa7yFhvITw_DYsc,7279
|
||||||
|
pip/_vendor/cachecontrol/wrapper.py,sha256=tKJnzRvbl7uJRxOChwlNLdJf9NR0QlnknQxgNzQW2kM,719
|
||||||
|
pip/_vendor/certifi/__init__.py,sha256=yNK-O9MHyQX1qYVnBuiU97REsFFEMimhp3MnaIh9Kbc,65
|
||||||
|
pip/_vendor/certifi/__main__.py,sha256=4JJNpOgznsXzgISGReUBrJGB6Q4zJOlIV99WFE185fM,267
|
||||||
|
pip/_vendor/certifi/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/certifi/__pycache__/__main__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/certifi/__pycache__/core.cpython-39.pyc,,
|
||||||
|
pip/_vendor/certifi/cacert.pem,sha256=u3fxPT--yemLvyislQRrRBlsfY9Vq3cgBh6ZmRqCkZc,263774
|
||||||
|
pip/_vendor/certifi/core.py,sha256=WCYiIkg5ozbypABAcRagDOa9DCO2qgnf66GZ1SRgmWA,2375
|
||||||
|
pip/_vendor/chardet/__init__.py,sha256=yxky3TQpsr5YTFEf5XYv0O4wq2e1WSilELYZ9e2AEes,3354
|
||||||
|
pip/_vendor/chardet/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/big5freq.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/big5prober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/chardistribution.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/charsetgroupprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/charsetprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/codingstatemachine.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/cp949prober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/enums.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/escprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/escsm.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/eucjpprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/euckrfreq.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/euckrprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/euctwfreq.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/euctwprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/gb2312freq.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/gb2312prober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/hebrewprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/jisfreq.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/jpcntx.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/langbulgarianmodel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/langgreekmodel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/langhebrewmodel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/langhungarianmodel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/langrussianmodel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/langthaimodel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/langturkishmodel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/latin1prober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/mbcharsetprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/mbcsgroupprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/mbcssm.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/sbcharsetprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/sbcsgroupprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/sjisprober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/universaldetector.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/utf8prober.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/__pycache__/version.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/big5freq.py,sha256=dwRzRlsGp3Zgr1JQSSSwnxvyaZ7_q-5kuPfCVMuy4to,31640
|
||||||
|
pip/_vendor/chardet/big5prober.py,sha256=TpmdoNfRtnQ7x9Q_p-a1CHaG-ok2mbisN5e9UHAtOiY,1804
|
||||||
|
pip/_vendor/chardet/chardistribution.py,sha256=NzboAhfS6GODy_Tp6BkmUOL4NuxwTVfdVFcKA9bdUAo,9644
|
||||||
|
pip/_vendor/chardet/charsetgroupprober.py,sha256=NPYh0Agp8UnrfqIls_qdbwszQ1mv9imGawGUCErFT6M,3946
|
||||||
|
pip/_vendor/chardet/charsetprober.py,sha256=kk5-m0VdjqzbEhPRkBZ386R3fBQo3DxsBrdL-WFyk1o,5255
|
||||||
|
pip/_vendor/chardet/cli/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
||||||
|
pip/_vendor/chardet/cli/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/cli/__pycache__/chardetect.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/cli/chardetect.py,sha256=535zsG4tA_x-_xPtEeDvn46QLib2nvF-5NT_nJdGgVs,2831
|
||||||
|
pip/_vendor/chardet/codingstatemachine.py,sha256=qz9ZwK1q4mZ4s4zDRbyXu5KaGunYbk7g1Z7fqfb4mA4,3678
|
||||||
|
pip/_vendor/chardet/compat.py,sha256=3j2eGvEAakISaIanHZ4wZutzfttNdRSdlo6RSjpyxsM,1236
|
||||||
|
pip/_vendor/chardet/cp949prober.py,sha256=5NnMVUcel3jDY3w8ljD0cXyj2lcrvdagxOVE1jxl7xc,1904
|
||||||
|
pip/_vendor/chardet/enums.py,sha256=3H_EIVP-VUYOdKqe2xmYdyooEDSLqS8sACMbn_3oejU,1737
|
||||||
|
pip/_vendor/chardet/escprober.py,sha256=5MrTnVtZGEt3ssnY-lOXmOo3JY-CIqz9ruG3KjDpkbY,4051
|
||||||
|
pip/_vendor/chardet/escsm.py,sha256=xQbwmM3Ieuskg-Aohyc6-bSfg3vsY0tx2TEKLDoVZGg,10756
|
||||||
|
pip/_vendor/chardet/eucjpprober.py,sha256=PHumemJS19xMhDR4xPrsvxMfyBfsb297kVWmYz6zgy8,3841
|
||||||
|
pip/_vendor/chardet/euckrfreq.py,sha256=MrLrIWMtlaDI0LYt-MM3MougBbLtSWHs6kvZx0VasIM,13741
|
||||||
|
pip/_vendor/chardet/euckrprober.py,sha256=VbiOn7_id7mL9Q5GdeV0Ze3w5fG0nRCpUkEzeR-bnnY,1795
|
||||||
|
pip/_vendor/chardet/euctwfreq.py,sha256=ZPBIHZDwNknGf7m6r4xGH8bX0W38qBpnTwVVv1QHw_M,32008
|
||||||
|
pip/_vendor/chardet/euctwprober.py,sha256=hlUyGKUxzOPfBxCcyUcvRZSxgkLuvRoDU9wejp6YMiM,1793
|
||||||
|
pip/_vendor/chardet/gb2312freq.py,sha256=aLHs-2GS8vmSM2ljyoWWgeVq_xRRcS_gN7ykpIiV43A,20998
|
||||||
|
pip/_vendor/chardet/gb2312prober.py,sha256=msVbrDFcrJRE_XvsyETiqbTGfvdFhVIEZ2zBd-OENaE,1800
|
||||||
|
pip/_vendor/chardet/hebrewprober.py,sha256=r81LqgKb24ZbvOmfi95MzItUxx7bkrjJR1ppkj5rvZw,14130
|
||||||
|
pip/_vendor/chardet/jisfreq.py,sha256=vrqCR4CmwownBVXJ3Hh_gsfiDnIHOELbcNmTyC6Jx3w,26102
|
||||||
|
pip/_vendor/chardet/jpcntx.py,sha256=Cn4cypo2y8CpqCan-zsdfYdEgXkRCnsqQoYaCu6FRjI,19876
|
||||||
|
pip/_vendor/chardet/langbulgarianmodel.py,sha256=IuDOQ4uAe5spaYXt1F-2_496DFYd3J5lyLKKbVg-Nkw,110347
|
||||||
|
pip/_vendor/chardet/langgreekmodel.py,sha256=cZRowhYjEUNYCevhuD5ZMHMiOIf3Pk1IpRixjTpRPB0,103969
|
||||||
|
pip/_vendor/chardet/langhebrewmodel.py,sha256=p-xw_b2XvGVSIQFgQL91cVpS7u3vPpGJZ0udYxD07Do,103159
|
||||||
|
pip/_vendor/chardet/langhungarianmodel.py,sha256=EKIZs5Z8Y-l6ORDcBzE9htOMMnAnr2j6Wb1PFRBMVxM,107148
|
||||||
|
pip/_vendor/chardet/langrussianmodel.py,sha256=TFH-3rTFzbCBF15oasmoqf92FKBnwWY_HaN2ptl5WVo,136898
|
||||||
|
pip/_vendor/chardet/langthaimodel.py,sha256=rTzLQ2x_RjQEzZfIksCR--SCFQyuP5eCtQpqxyl5-x8,107695
|
||||||
|
pip/_vendor/chardet/langturkishmodel.py,sha256=fWI_tafe_UQ24gdOGqOWy1tnEY2jxKHoi4ueoT3rrrc,100329
|
||||||
|
pip/_vendor/chardet/latin1prober.py,sha256=s1SFkEFY2NGe2_9bgX2MhOmyM_U_qSd_jVSdkdSgZxs,5515
|
||||||
|
pip/_vendor/chardet/mbcharsetprober.py,sha256=hzFVD-brxTAVLnTAkDqa1ztd6RwGGwb5oAdvhj1-lE8,3504
|
||||||
|
pip/_vendor/chardet/mbcsgroupprober.py,sha256=DlT-X7KRUl5y3SWJNqF1NXqvkjVc47jPKjJ2j4KVs3A,2066
|
||||||
|
pip/_vendor/chardet/mbcssm.py,sha256=LGUDh1VB61rWsZB4QlJBzaCjI2PUEUgbBc91gPlX4DQ,26053
|
||||||
|
pip/_vendor/chardet/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_vendor/chardet/metadata/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/metadata/__pycache__/languages.cpython-39.pyc,,
|
||||||
|
pip/_vendor/chardet/metadata/languages.py,sha256=pGf_EnapgynSUCViRjUcwEi7AWw_bYPJFHCqerAFSbQ,19784
|
||||||
|
pip/_vendor/chardet/sbcharsetprober.py,sha256=VPAZ5z-o8ixIIfEGTScLVXeQxkd3Zqi1eceerr0rb78,6281
|
||||||
|
pip/_vendor/chardet/sbcsgroupprober.py,sha256=p8XICsXYXOF78Anypfvdne8K_0p8qFC-SUF5nwD1fo4,4392
|
||||||
|
pip/_vendor/chardet/sjisprober.py,sha256=1WGev_SSHpa7AVXmM0DIONl1OvyKc8mdydUNaKtGGNI,3866
|
||||||
|
pip/_vendor/chardet/universaldetector.py,sha256=C3ryFrDZ9JuroNMdYwgDa2_zAYJlWuPHyHLX5WtCY-g,12789
|
||||||
|
pip/_vendor/chardet/utf8prober.py,sha256=rGwn69WfIvmibp0sWvYuH_TPoXs7zzwKHTX79Ojbr9o,2848
|
||||||
|
pip/_vendor/chardet/version.py,sha256=LCY3oiBIflXJGeBYm7ly2aw6P9n272rhp3t7qz3oOHo,251
|
||||||
|
pip/_vendor/colorama/__init__.py,sha256=besK61Glmusp-wZ1wjjSlsPKEY_6zndaeulh1FkVStw,245
|
||||||
|
pip/_vendor/colorama/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/colorama/__pycache__/ansi.cpython-39.pyc,,
|
||||||
|
pip/_vendor/colorama/__pycache__/ansitowin32.cpython-39.pyc,,
|
||||||
|
pip/_vendor/colorama/__pycache__/initialise.cpython-39.pyc,,
|
||||||
|
pip/_vendor/colorama/__pycache__/win32.cpython-39.pyc,,
|
||||||
|
pip/_vendor/colorama/__pycache__/winterm.cpython-39.pyc,,
|
||||||
|
pip/_vendor/colorama/ansi.py,sha256=121ZIWJSdXR76TcqKXusVZQRgyb0AIlRnf5EW6oSGlQ,2624
|
||||||
|
pip/_vendor/colorama/ansitowin32.py,sha256=bZByVMjpiUp-LSAK21KNvCh63UN9CPkXdHFPUsq20kA,10775
|
||||||
|
pip/_vendor/colorama/initialise.py,sha256=J92wwYPAAEgdlAyw-ady4JJxl1j9UmXPodi0HicWDwg,1995
|
||||||
|
pip/_vendor/colorama/win32.py,sha256=fI0Ani_DO_cYDAbHz_a0BsMbDKHCA1-P3PGcj0eDCmA,5556
|
||||||
|
pip/_vendor/colorama/winterm.py,sha256=Zurpa5AEwarU62JTuERX53gGelEWH5SBUiAXN4CxMtA,6607
|
||||||
|
pip/_vendor/contextlib2.py,sha256=t6Fla8KtAzH4ERLcdAfXizvnpp4nOw9GCq4GYFwTHkg,17433
|
||||||
|
pip/_vendor/distlib/__init__.py,sha256=VmyMfsxv7AYUwPUA52UN_a1GzhtKpSpF7zM7y0G6ocA,604
|
||||||
|
pip/_vendor/distlib/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/database.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/index.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/locators.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/manifest.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/markers.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/metadata.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/resources.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/scripts.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/util.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/version.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/__pycache__/wheel.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/_backport/__init__.py,sha256=XkACqtjaFfFn1QQBFDNxSqhMva0LqXeeh6H3fVwwLQ4,280
|
||||||
|
pip/_vendor/distlib/_backport/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/_backport/__pycache__/misc.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/_backport/__pycache__/shutil.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/_backport/__pycache__/sysconfig.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/_backport/__pycache__/tarfile.cpython-39.pyc,,
|
||||||
|
pip/_vendor/distlib/_backport/misc.py,sha256=focjmI7975W3LgEtiNC99lvxohfZdsNSLTakOcPNShs,1012
|
||||||
|
pip/_vendor/distlib/_backport/shutil.py,sha256=h-yIttFtLq-_LKn5lLn4beHXzRwcmo2wEg4UKU7hX6E,26471
|
||||||
|
pip/_vendor/distlib/_backport/sysconfig.cfg,sha256=LoipPkR2PfCKC7JUQBGxp6OFVlWIiWBXT-rNuzv8acU,2701
|
||||||
|
pip/_vendor/distlib/_backport/sysconfig.py,sha256=qV5ZK6YVkHS-gUFacIT2TpFBw7bZJFH3DYa8PbT6O54,27640
|
||||||
|
pip/_vendor/distlib/_backport/tarfile.py,sha256=fzwGLsCdTmO8uzoHjyjSgu4-srrDQEAcw4jNKUfvQH0,95235
|
||||||
|
pip/_vendor/distlib/compat.py,sha256=Z8PBQ-ZPCJuRvzs5rtHuzceFOB8iYV8HHjAGrW3SQ8s,42528
|
||||||
|
pip/_vendor/distlib/database.py,sha256=m_LtL3siDUdcSvftoTnXcjhUJA-WZhDwTvHO7rg72SA,52398
|
||||||
|
pip/_vendor/distlib/index.py,sha256=MYT9QkE79nX-D9fz1tBpl6YHHmq4uSO95Sp-Gq6dN7E,21582
|
||||||
|
pip/_vendor/distlib/locators.py,sha256=DMRfq00jgdPDwelULclHE8qbjNVqGCBoTOXl2kfiwMY,53402
|
||||||
|
pip/_vendor/distlib/manifest.py,sha256=0TlGw5ZyFp8wxr_GJz7tAAXGYwUJvceMIOsh9ydAXpM,15204
|
||||||
|
pip/_vendor/distlib/markers.py,sha256=k4Fx6LHfaIaX1eOIoaWK_-o-zE8zoT5rXwb6mbnLoXk,4518
|
||||||
|
pip/_vendor/distlib/metadata.py,sha256=E3b0ee3kUoNbawem10Mc6qGCBNCUxFvS4TkYKUX8z2Q,40018
|
||||||
|
pip/_vendor/distlib/resources.py,sha256=5Xn4ehSMQKsu6kf4gxIsMvy668RRvtL0XwUPytyviPE,11121
|
||||||
|
pip/_vendor/distlib/scripts.py,sha256=oGaqPfOX_wcLXbzW2xf8ojJQbU9aJ29QiUgslWNHncM,17599
|
||||||
|
pip/_vendor/distlib/t32.exe,sha256=NS3xBCVAld35JVFNmb-1QRyVtThukMrwZVeXn4LhaEQ,96768
|
||||||
|
pip/_vendor/distlib/t64.exe,sha256=oAqHes78rUWVM0OtVqIhUvequl_PKhAhXYQWnUf7zR0,105984
|
||||||
|
pip/_vendor/distlib/util.py,sha256=vjN27blgrxQkPPiBbAhEbdiv_Xw0ogu4XAT9SgU3x-c,61606
|
||||||
|
pip/_vendor/distlib/version.py,sha256=tFjbWEAxyeCDw0dWQDJsWsu9EzegUI5Yhm3IBu2x8hY,24127
|
||||||
|
pip/_vendor/distlib/w32.exe,sha256=lJtnZdeUxTZWya_EW5DZos_K5rswRECGspIl8ZJCIXs,90112
|
||||||
|
pip/_vendor/distlib/w64.exe,sha256=0aRzoN2BO9NWW4ENy4_4vHkHR4qZTFZNVSAJJYlODTI,99840
|
||||||
|
pip/_vendor/distlib/wheel.py,sha256=u8_DwGV_j2-fxQRizS3V9OTioXV-IZ6EC-n6yOnjUfc,42162
|
||||||
|
pip/_vendor/distro.py,sha256=ni3ahks9qSr3P1FMur9zTPEF_xcAdaHW8iWZWqwB5mU,44858
|
||||||
|
pip/_vendor/html5lib/__init__.py,sha256=Bmlpvs5dN2GoaWRAvN2UZ1yF_p7xb2zROelA0QxBKis,1195
|
||||||
|
pip/_vendor/html5lib/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/__pycache__/_ihatexml.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/__pycache__/_inputstream.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/__pycache__/_tokenizer.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/__pycache__/_utils.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/__pycache__/constants.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/__pycache__/html5parser.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/__pycache__/serializer.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/_ihatexml.py,sha256=IyMKE35pNPCYYGs290_oSUhWXF1BQZsbVcXBzGuFvl4,17017
|
||||||
|
pip/_vendor/html5lib/_inputstream.py,sha256=EA6Wj46jxuK6544Vnk9YOjIpFwGbfJW0Ar2cMH1H0VU,33271
|
||||||
|
pip/_vendor/html5lib/_tokenizer.py,sha256=BUDNWZENVB0oFBiKR49sZsqQU4rzLLa13-byISlYRfA,78775
|
||||||
|
pip/_vendor/html5lib/_trie/__init__.py,sha256=kfSo27BaU64El8U7bg4ugLmI3Ksywu54xE6BlhVgggA,114
|
||||||
|
pip/_vendor/html5lib/_trie/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/_trie/__pycache__/_base.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/_trie/__pycache__/py.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/_trie/_base.py,sha256=LTpLNz1pn7LAcfn2TFvRp4moVPbFTkkbhzjPKUrvGes,1053
|
||||||
|
pip/_vendor/html5lib/_trie/py.py,sha256=LmuYcbypKw-aMLcT0-IY6WewATGzg1QRkmyd8hTBQeY,1842
|
||||||
|
pip/_vendor/html5lib/_utils.py,sha256=dLFxoZDTv5r38HOIHy45uxWwUY7VhLgbEFWNQw6Wppo,5090
|
||||||
|
pip/_vendor/html5lib/constants.py,sha256=P9n6_ScDgAFkst0YfKaB-yaAlxVtUS9uMn5Lh8ywbQo,86410
|
||||||
|
pip/_vendor/html5lib/filters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/alphabeticalattributes.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/base.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/inject_meta_charset.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/lint.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/optionaltags.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/sanitizer.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/__pycache__/whitespace.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/filters/alphabeticalattributes.py,sha256=0TV6VWJzhNkcLFiR7BNZUJsTJgAEEyZ02in6-PuL2gU,948
|
||||||
|
pip/_vendor/html5lib/filters/base.py,sha256=6D2t423hbOLtjnvAAOrs1mWX1vsabMLBrWQF67ITPho,298
|
||||||
|
pip/_vendor/html5lib/filters/inject_meta_charset.py,sha256=J-W5X3LyosH1sUipiHU1x-2ocd7g9JSudpIek_QlCUU,3018
|
||||||
|
pip/_vendor/html5lib/filters/lint.py,sha256=O6sK29HXXW02Nv-EIEOfGvdQMuXxWvBePu2sQ2ecbJc,3736
|
||||||
|
pip/_vendor/html5lib/filters/optionaltags.py,sha256=IVHcJ35kr6_MYBqahFMIK-Gel-ALLUk6Wk9X-or_yXk,10795
|
||||||
|
pip/_vendor/html5lib/filters/sanitizer.py,sha256=uwT0HNJHjnw3Omf2LpmvfoVdIgAWb9_3VrMcWD1es_M,27813
|
||||||
|
pip/_vendor/html5lib/filters/whitespace.py,sha256=bCC0mMQZicbq8HCg67pip_oScN5Fz_KkkvldfE137Kw,1252
|
||||||
|
pip/_vendor/html5lib/html5parser.py,sha256=2xGZMaUvdkuuswAmpkazK1CXHT_y3-XTy4lS71PYUuU,119981
|
||||||
|
pip/_vendor/html5lib/serializer.py,sha256=vMivcnRcQxjCSTrbMFdevLMhJ2HbF0cfv_CkroTODZM,16168
|
||||||
|
pip/_vendor/html5lib/treeadapters/__init__.py,sha256=76InX2oJAx-C4rGAJziZsoE_CHI8_3thl6TeMgP-ypk,709
|
||||||
|
pip/_vendor/html5lib/treeadapters/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treeadapters/__pycache__/genshi.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treeadapters/__pycache__/sax.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treeadapters/genshi.py,sha256=nQHNa4Hu0IMpu4bqHbJJS3_Cd1pKXgDO1pgMZ6gADDg,1769
|
||||||
|
pip/_vendor/html5lib/treeadapters/sax.py,sha256=PAmV6NG9BSpfMHUY72bDbXwAe6Q2tPn1BC2yAD-K1G0,1826
|
||||||
|
pip/_vendor/html5lib/treebuilders/__init__.py,sha256=zfrXDjeqDo2M7cJFax6hRJs70Az4pfHFiZbuLOZ9YE4,3680
|
||||||
|
pip/_vendor/html5lib/treebuilders/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treebuilders/__pycache__/base.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treebuilders/__pycache__/dom.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treebuilders/__pycache__/etree.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treebuilders/__pycache__/etree_lxml.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treebuilders/base.py,sha256=Yao9LOJd-4KaLEx-3ysqRkAkhv1YaDqhTksvX6nuQyY,14982
|
||||||
|
pip/_vendor/html5lib/treebuilders/dom.py,sha256=QWkBtUprtDosTiTFlIY6QpgKwk2-pD0AV84qVTNgiLo,9164
|
||||||
|
pip/_vendor/html5lib/treebuilders/etree.py,sha256=k-LHrme562Hd5GmIi87r1_vfF25MtURGPurT3mAp8sY,13179
|
||||||
|
pip/_vendor/html5lib/treebuilders/etree_lxml.py,sha256=CviyyGjvv2TwN-m47DC8DFWdx0Gt-atRw9jMTv4v8-Q,15158
|
||||||
|
pip/_vendor/html5lib/treewalkers/__init__.py,sha256=buyxCJb9LFfJ_1ZIMdc-Do1zV93Uw-7L942o2H-Swy0,5873
|
||||||
|
pip/_vendor/html5lib/treewalkers/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treewalkers/__pycache__/base.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treewalkers/__pycache__/dom.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treewalkers/__pycache__/etree.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treewalkers/__pycache__/etree_lxml.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treewalkers/__pycache__/genshi.cpython-39.pyc,,
|
||||||
|
pip/_vendor/html5lib/treewalkers/base.py,sha256=g-cLq7VStBtpZZZ1v_Tbwp3GhJjQ2oG5njgeHVhAaXE,7728
|
||||||
|
pip/_vendor/html5lib/treewalkers/dom.py,sha256=fBJht3gn5a6y1WN2KE9gsUru158yTQ0KikT3vOM7Xc4,1456
|
||||||
|
pip/_vendor/html5lib/treewalkers/etree.py,sha256=VtcKOS13qy9nv2PAaYoB1j9V1Z8n9o0AEA9KoGAgYOg,4682
|
||||||
|
pip/_vendor/html5lib/treewalkers/etree_lxml.py,sha256=u9X06RqSrHanDb0qGI-v8I99-PqzOzmnpZOspHHz_Io,6572
|
||||||
|
pip/_vendor/html5lib/treewalkers/genshi.py,sha256=P_2Tnc2GkbWJfuodXN9oYIg6kN9E26aWXXe9iL0_eX4,2378
|
||||||
|
pip/_vendor/idna/__init__.py,sha256=_0n4R0OXufy1HIcXEOxgJCUCHGDqtazhMdYBVIXc320,60
|
||||||
|
pip/_vendor/idna/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/__pycache__/codec.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/__pycache__/compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/__pycache__/core.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/__pycache__/idnadata.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/__pycache__/intranges.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/__pycache__/package_data.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/__pycache__/uts46data.cpython-39.pyc,,
|
||||||
|
pip/_vendor/idna/codec.py,sha256=NDQdy95NUcd00WV5Qh0QOpZvYJzIpaMVb9ME0hKuQ80,3417
|
||||||
|
pip/_vendor/idna/compat.py,sha256=QPaSi9bWqUO7OAXmC0brJFYc1zweHI3JnA7HiM2BlQA,244
|
||||||
|
pip/_vendor/idna/core.py,sha256=9uPbfjxEP-fiU9QL8dtxNnaZHyZr7YUtUS1V0GaNB48,12351
|
||||||
|
pip/_vendor/idna/idnadata.py,sha256=qUMdMMOBhxlR7CJpeXFUy97pBTZRwhWKa3zIhulao0k,44400
|
||||||
|
pip/_vendor/idna/intranges.py,sha256=K5VTgP3Cn6UOQwinqj0O2stySFQoTb8xrLFKyg-hulg,1802
|
||||||
|
pip/_vendor/idna/package_data.py,sha256=JS73h8bhkMB0AKLCXZ-Hbt660VMRAFBcP9drX0lX52s,24
|
||||||
|
pip/_vendor/idna/uts46data.py,sha256=oxTG_Nku3jRCkXmSOL2yg_TCQHhH43uN2bDtuJ8xoCc,210441
|
||||||
|
pip/_vendor/msgpack/__init__.py,sha256=OhoFouHD7wOYMP2PN-Hlyk9RAZw39V-iPTDRsmkoIns,1172
|
||||||
|
pip/_vendor/msgpack/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/msgpack/__pycache__/_version.cpython-39.pyc,,
|
||||||
|
pip/_vendor/msgpack/__pycache__/exceptions.cpython-39.pyc,,
|
||||||
|
pip/_vendor/msgpack/__pycache__/ext.cpython-39.pyc,,
|
||||||
|
pip/_vendor/msgpack/__pycache__/fallback.cpython-39.pyc,,
|
||||||
|
pip/_vendor/msgpack/_version.py,sha256=qcv5IclQy1PSvtCYDvZyjaUSFWdHPIRzdGjv3YwkKCs,21
|
||||||
|
pip/_vendor/msgpack/exceptions.py,sha256=2fCtczricqQgdT3NtW6cTqmZn3WA7GQtmlPuT-NhLyM,1129
|
||||||
|
pip/_vendor/msgpack/ext.py,sha256=3Xznjz11nxxfQJe50uLzKDznWOvxOBxWSZ833DL_DDs,6281
|
||||||
|
pip/_vendor/msgpack/fallback.py,sha256=ZaNwBMO2hh9WrqHnYqdHJaCv8zzPMnva9YhD5yInTpM,39113
|
||||||
|
pip/_vendor/packaging/__about__.py,sha256=h9QOAlgXk51CVUXfD2djDO8X7z2DKjnIxkEcmCHalTc,753
|
||||||
|
pip/_vendor/packaging/__init__.py,sha256=UcApkMPyWGcIGgYWGi5lL5uzPYpelyaOPRXhgdUhCiw,588
|
||||||
|
pip/_vendor/packaging/__pycache__/__about__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/_compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/_structures.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/_typing.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/markers.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/requirements.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/specifiers.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/tags.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/utils.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/__pycache__/version.cpython-39.pyc,,
|
||||||
|
pip/_vendor/packaging/_compat.py,sha256=wtTUbVAZPwwTy4_8aQjCedCpQVcy-CTvCZv1Ri3IvhY,1166
|
||||||
|
pip/_vendor/packaging/_structures.py,sha256=0DUfMS4mYkvzf_89F1f5SRSbYtcxdikc3TvzgCnxeo0,2108
|
||||||
|
pip/_vendor/packaging/_typing.py,sha256=n1Xr-giO86iFpEEEkYKWWGZetBwnyYbwhcr-EuId0G0,1872
|
||||||
|
pip/_vendor/packaging/markers.py,sha256=1Fj8RWPWbNhnOsSZAYqs7JRI6-aOBzEau7u9UcnFKLk,9808
|
||||||
|
pip/_vendor/packaging/requirements.py,sha256=Oxps2CfRKfaPNGWICAv5eUeUwddVOmOfHuLKlQ1k6MU,5270
|
||||||
|
pip/_vendor/packaging/specifiers.py,sha256=BCbv9EegYKBiwB5qOLkAVK6sAVCrHdGIeVfzzGznn4c,33072
|
||||||
|
pip/_vendor/packaging/tags.py,sha256=aOIFGI46FLvkJpDwy858fFdrHbydPRu1caLTkI8UTOo,30427
|
||||||
|
pip/_vendor/packaging/utils.py,sha256=QSspLOaGAUqVnR8c1dHpIHIOQwJHydchP7HnnzMCHSY,4523
|
||||||
|
pip/_vendor/packaging/version.py,sha256=QmDlgceXJ0sPNCc2Oe4yda6lShIItK7C1nZVmd-Sq5g,16530
|
||||||
|
pip/_vendor/pep517/__init__.py,sha256=ure7CT2epH277sv3FqdoG-8BaydDdFnJnU1d4z15NQI,135
|
||||||
|
pip/_vendor/pep517/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/_in_process.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/build.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/check.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/colorlog.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/dirtools.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/envbuild.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/meta.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/__pycache__/wrappers.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pep517/_in_process.py,sha256=R6B_Ol8FFxdRdbZ1R35CIL0glBjC-seixM2i0zasCTg,8718
|
||||||
|
pip/_vendor/pep517/build.py,sha256=_LmMkH9mASElZ4lRRCwzmIrQedeguL5ocpSO0zPh6M0,3459
|
||||||
|
pip/_vendor/pep517/check.py,sha256=qf0B_WXekszLi8IQb6Xv8raz5D5Ra-CdUmFjvnfbwdc,6164
|
||||||
|
pip/_vendor/pep517/colorlog.py,sha256=uOdcoDYZ0ocKGRPPs5JgvpLYVDIfoEVvoMpc43ICQFU,4213
|
||||||
|
pip/_vendor/pep517/compat.py,sha256=1jqYeQ-XtQzmaxIHxESnGU313ZBanlnusKD2gNBzRKQ,814
|
||||||
|
pip/_vendor/pep517/dirtools.py,sha256=hrSzAJOGDo3tXdtCbgJ6LqoLhPVJn6JGmekz1ofLi6o,1173
|
||||||
|
pip/_vendor/pep517/envbuild.py,sha256=Ji_P7ePNXexLOSqBlKyoyQqZQXNxF7-Xp3bF5XcsGgM,6208
|
||||||
|
pip/_vendor/pep517/meta.py,sha256=ZkHYB0YHt4FDuSE5NdFuVsat3xfZ6LgW6VS6d4D6vIQ,2555
|
||||||
|
pip/_vendor/pep517/wrappers.py,sha256=DLtY2zCWCyhWaVv8_AQcdUs0aou704Uos9vlCuiMLuc,11617
|
||||||
|
pip/_vendor/pkg_resources/__init__.py,sha256=zeMvnKzGEcWISjTwy6YtFKWamTFJdwBwYjBAFUoyf7A,111573
|
||||||
|
pip/_vendor/pkg_resources/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pkg_resources/__pycache__/py31compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/pkg_resources/py31compat.py,sha256=tzQGe-w8g7GEXb6Ozw2-v8ZHaIygADmw0LAgriYzPAc,585
|
||||||
|
pip/_vendor/progress/__init__.py,sha256=YTntFxK5CZDfVAa1b77EbNkWljGqvyM72YKRTHaHap8,5034
|
||||||
|
pip/_vendor/progress/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/progress/__pycache__/bar.cpython-39.pyc,,
|
||||||
|
pip/_vendor/progress/__pycache__/counter.cpython-39.pyc,,
|
||||||
|
pip/_vendor/progress/__pycache__/spinner.cpython-39.pyc,,
|
||||||
|
pip/_vendor/progress/bar.py,sha256=evFQod41y2bMU60teK16uV-A5F4yVUehab8dtCiXj1E,2945
|
||||||
|
pip/_vendor/progress/counter.py,sha256=c8AdstUGrFQvIQbvtHjjXxZx6LCflrY-a7DVM6IYTBs,1413
|
||||||
|
pip/_vendor/progress/spinner.py,sha256=zLcx2RFinPfM6UwveJJrcJ8YABE3aLCAKqQFVD3pHow,1423
|
||||||
|
pip/_vendor/pyparsing.py,sha256=lD3A8iEK1JYvnNDP00Cgve4vZjwEFonCvrpo7mEl3Q8,280501
|
||||||
|
pip/_vendor/requests/__init__.py,sha256=ZPcnlAopNRpI2-4_FZKv1_SbCBwlwTxi-mKRwZhdPec,4600
|
||||||
|
pip/_vendor/requests/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/__version__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/_internal_utils.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/adapters.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/api.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/auth.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/certs.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/compat.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/cookies.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/exceptions.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/help.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/hooks.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/models.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/packages.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/sessions.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/status_codes.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/structures.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__pycache__/utils.cpython-39.pyc,,
|
||||||
|
pip/_vendor/requests/__version__.py,sha256=PYPw-iruqHi6_VTCebDNFpTbGld8EbCSw6EuZDH0c28,455
|
||||||
|
pip/_vendor/requests/_internal_utils.py,sha256=zDALdxFfs4pAp4CME_TTw2rGyYR2EGBpSehYHgfn8o0,1138
|
||||||
|
pip/_vendor/requests/adapters.py,sha256=v-nXh1zlxNzGQWQicaDrnsMmus75p2c99GPOtPl-6uw,22081
|
||||||
|
pip/_vendor/requests/api.py,sha256=wQeIxib0gxc8KyQqF3oMwV2r7sszjJc2hbhGV_ZMzFQ,6657
|
||||||
|
pip/_vendor/requests/auth.py,sha256=xe7s91xl3ENjQgRlZP3-2KsACnXYHAiLOuHLDw6nyyQ,10512
|
||||||
|
pip/_vendor/requests/certs.py,sha256=fFBPJjnP90gWELetFYPbzrsfZgSZopej7XhlkrnVVec,483
|
||||||
|
pip/_vendor/requests/compat.py,sha256=xfkhI1O0M1RPT9n92GEeoalPuBOYMsdApi7TONmwWD8,2121
|
||||||
|
pip/_vendor/requests/cookies.py,sha256=PIxSKntoUn6l2irwR-CBMgm0scK8s-6yUZzwoCVIAdo,18979
|
||||||
|
pip/_vendor/requests/exceptions.py,sha256=PIWWBbIjGPntNY_KDJMYzEqrBCmjh5d3rk7vZt2pXZI,3296
|
||||||
|
pip/_vendor/requests/help.py,sha256=cU7c_l65QBsGALbTfqkHIeXpEKJ5cPih6N7Xcj9jjIQ,3697
|
||||||
|
pip/_vendor/requests/hooks.py,sha256=LAWGUHI8SB52PkhFYbwyPcT6mWsjuVJeeZpM0RUTADc,791
|
||||||
|
pip/_vendor/requests/models.py,sha256=JF52k_hco_uYxvg91Dhhc1c171lf7h6wVbBT0D7wxgA,35329
|
||||||
|
pip/_vendor/requests/packages.py,sha256=ry2VlKGoCDdr8ZJyNCXxDcAF1HfENfmoylCK-_VzXh0,711
|
||||||
|
pip/_vendor/requests/sessions.py,sha256=mpQg1Iz7Yg_IhfE87tkb2QwC3yS7JwiE3Ewe6mum_iY,30918
|
||||||
|
pip/_vendor/requests/status_codes.py,sha256=ef_TQlJHa44J6_nrl_hTw6h7I-oZS8qg2MHCu9YyzYY,4311
|
||||||
|
pip/_vendor/requests/structures.py,sha256=ssrNLrH8XELX89hk4yRQYEVeHnbopq1HAJBfgu38bi8,3110
|
||||||
|
pip/_vendor/requests/utils.py,sha256=9CyTbt6eajb0LurVm10A9gSOYZ-PNSjEjz3XZ4U7Ywk,31521
|
||||||
|
pip/_vendor/resolvelib/__init__.py,sha256=lzKfakTdPCSwU0ka5lroJTWCp5oHH50S35PI79aCufA,563
|
||||||
|
pip/_vendor/resolvelib/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/resolvelib/__pycache__/providers.cpython-39.pyc,,
|
||||||
|
pip/_vendor/resolvelib/__pycache__/reporters.cpython-39.pyc,,
|
||||||
|
pip/_vendor/resolvelib/__pycache__/resolvers.cpython-39.pyc,,
|
||||||
|
pip/_vendor/resolvelib/__pycache__/structs.cpython-39.pyc,,
|
||||||
|
pip/_vendor/resolvelib/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_vendor/resolvelib/compat/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/resolvelib/compat/__pycache__/collections_abc.cpython-39.pyc,,
|
||||||
|
pip/_vendor/resolvelib/compat/collections_abc.py,sha256=MheZFF7RxE2-89xgOpds4n99OEzq1RZTU5q4UVXNnQU,133
|
||||||
|
pip/_vendor/resolvelib/providers.py,sha256=K5PbvYNuo9J_CgBDXknQpgNzQLuRucz8cSY-jMAry4o,5210
|
||||||
|
pip/_vendor/resolvelib/reporters.py,sha256=Yi7l5VMEKyhL20KIEglPukQHWJHkweV4e4amcJs-4yk,1401
|
||||||
|
pip/_vendor/resolvelib/resolvers.py,sha256=CEQp-FpwW9aKbkhrJoBoMp0i6aZx_LW-J_nENmdlU_w,16992
|
||||||
|
pip/_vendor/resolvelib/structs.py,sha256=kbTC6heWXe96iLb0F7KdoxoTvmujcTsT5TX-ODuY2qg,4557
|
||||||
|
pip/_vendor/retrying.py,sha256=LfbAQSee7r9F4SHbBcI1OBu7OLSDDr04Qsw9zkuC0Jw,10239
|
||||||
|
pip/_vendor/six.py,sha256=PB_L4p2xXUH81qAYSIWp7iQRf-RU858yzM8bUfpyYBY,35141
|
||||||
|
pip/_vendor/toml/__init__.py,sha256=mT8JBhpMcIoJeu-CrAAxPwe_d-xt-5pr9T_phq398TA,772
|
||||||
|
pip/_vendor/toml/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/toml/__pycache__/decoder.cpython-39.pyc,,
|
||||||
|
pip/_vendor/toml/__pycache__/encoder.cpython-39.pyc,,
|
||||||
|
pip/_vendor/toml/__pycache__/ordered.cpython-39.pyc,,
|
||||||
|
pip/_vendor/toml/__pycache__/tz.cpython-39.pyc,,
|
||||||
|
pip/_vendor/toml/decoder.py,sha256=Uxh7DDx_iAkVMDWZsE4kFUZFFIklqOs_sRzFjJ0pwqY,40011
|
||||||
|
pip/_vendor/toml/encoder.py,sha256=r7njY4Dgtsae5o5X-WS5LcQeIFguk1b3eqOioqqM1Ck,10268
|
||||||
|
pip/_vendor/toml/ordered.py,sha256=byuDm6cI-nc2D37R4ae3soCb-k4pt48LpLh3e8LD2Fw,393
|
||||||
|
pip/_vendor/toml/tz.py,sha256=gyy65HjpDD5I7ujKkL5iWLrUj3uFVpS08ls_btZ0uoY,725
|
||||||
|
pip/_vendor/urllib3/__init__.py,sha256=FzLqycdKhCzSxjYOPTX50D3qf0lTCe6UgfZdwT-Li7o,2848
|
||||||
|
pip/_vendor/urllib3/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/_collections.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/_version.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/connection.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/connectionpool.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/exceptions.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/fields.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/filepost.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/poolmanager.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/request.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/__pycache__/response.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/_collections.py,sha256=RQtWWhudTDETvb2BCVqih1QTpXS2Q5HSf77UJY5ditA,11148
|
||||||
|
pip/_vendor/urllib3/_version.py,sha256=y3H2R2qrG0QbjqKtuJNDmsD6z1luXDp-kD1fTjDzdGs,65
|
||||||
|
pip/_vendor/urllib3/connection.py,sha256=lyJSLSrRVMHfktX6t9Vtvx4yBcAwOvdkSWjk3HhWfkA,19024
|
||||||
|
pip/_vendor/urllib3/connectionpool.py,sha256=yFGc0n8ZWlHr7PaXlRGWiRydYOlJb5mVRNjXrgC7q28,38200
|
||||||
|
pip/_vendor/urllib3/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_vendor/urllib3/contrib/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/__pycache__/_appengine_environ.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/__pycache__/appengine.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/__pycache__/ntlmpool.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/__pycache__/pyopenssl.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/__pycache__/securetransport.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/__pycache__/socks.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/_appengine_environ.py,sha256=POYJSeNWacJYwXQdv0If3v56lcoiHuL6MQE8pwG1Yoc,993
|
||||||
|
pip/_vendor/urllib3/contrib/_securetransport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_vendor/urllib3/contrib/_securetransport/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/_securetransport/__pycache__/bindings.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/_securetransport/__pycache__/low_level.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/contrib/_securetransport/bindings.py,sha256=jreOmmwBW-Cio0m7I_OjmP028nqgrGuo_oB2f7Gir3s,18168
|
||||||
|
pip/_vendor/urllib3/contrib/_securetransport/low_level.py,sha256=0KKeznz3h0z-SBDbCtGorDfgCgiZ30VQOqkX5ZgaPBY,14304
|
||||||
|
pip/_vendor/urllib3/contrib/appengine.py,sha256=GObYFGhIv3PUW1-SRONBUac4kr2ja2dfyZhe1WJb0JY,11348
|
||||||
|
pip/_vendor/urllib3/contrib/ntlmpool.py,sha256=xd-sWgSxZh-kNrUhzhcb7bRNiEvywF3GlRGv4xPpDI8,4281
|
||||||
|
pip/_vendor/urllib3/contrib/pyopenssl.py,sha256=2EUnc5DS6QpjrnMMCxeT_nVuhP6Kzmw0rbo3aBCddEI,17304
|
||||||
|
pip/_vendor/urllib3/contrib/securetransport.py,sha256=-Je5h1SDUr-8rX8dh8UZWsi90qoHkhT_oZhpsCLqwHw,35223
|
||||||
|
pip/_vendor/urllib3/contrib/socks.py,sha256=NVZv5069T4TPXMtDnt8revc8Jgee0oxHX-zYeWrP36c,7313
|
||||||
|
pip/_vendor/urllib3/exceptions.py,sha256=_ofwiuS3iKNqq2bodJzZ1CIXzm-hVwNJ0WMN5UoOnno,8123
|
||||||
|
pip/_vendor/urllib3/fields.py,sha256=0KSfpuXxzXUMLkI2npM9siWOqCJO1H4wCiJN6neVmlA,8853
|
||||||
|
pip/_vendor/urllib3/filepost.py,sha256=BVkEES0YAO9tFwXGBj1mD9yO92pRwk4pX5Q6cO5IRb8,2538
|
||||||
|
pip/_vendor/urllib3/packages/__init__.py,sha256=FsOIVHqBFBlT3XxZnaD5y2yq0mvtVwmY4kut3GEfcBI,113
|
||||||
|
pip/_vendor/urllib3/packages/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/packages/__pycache__/six.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/packages/backports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
pip/_vendor/urllib3/packages/backports/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/packages/backports/__pycache__/makefile.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/packages/backports/makefile.py,sha256=DREmQjGcs2LoVH_Q3hrggClhTNdcI5Y3GJglsuihjAM,1468
|
||||||
|
pip/_vendor/urllib3/packages/six.py,sha256=41omxbNReajvLUN-9qdHM6iAEisho1JDaZ1krmNu-jE,33557
|
||||||
|
pip/_vendor/urllib3/packages/ssl_match_hostname/__init__.py,sha256=ceiD4ynQtrlnos1yI1RSqaETeLiNRzzAtxYsRGApR4s,779
|
||||||
|
pip/_vendor/urllib3/packages/ssl_match_hostname/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/packages/ssl_match_hostname/__pycache__/_implementation.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/packages/ssl_match_hostname/_implementation.py,sha256=WXs1yNtk9PsYVmeTJQAcqeAm81zbzeabEWWf-xRJSAo,5839
|
||||||
|
pip/_vendor/urllib3/poolmanager.py,sha256=blNTYqVqFg9zUGncVtyXk1HQsTxKO1Cy9hfGVLAGvhM,20299
|
||||||
|
pip/_vendor/urllib3/request.py,sha256=Fe4bQCUhum8qh3t1dihpSsQwdyfd5nB44cNX8566DmM,6155
|
||||||
|
pip/_vendor/urllib3/response.py,sha256=LjfUJBUhwPrJTrGgNI3WoySUizNEPd1Xiv71YxE2J7Y,29024
|
||||||
|
pip/_vendor/urllib3/util/__init__.py,sha256=UV_J7p9b29cJXXQ6wTvBZppJDLUeKQ6mcv0v1ptl13c,1204
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/connection.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/proxy.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/queue.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/request.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/response.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/retry.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/ssl_.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/ssltransport.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/timeout.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/url.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/__pycache__/wait.cpython-39.pyc,,
|
||||||
|
pip/_vendor/urllib3/util/connection.py,sha256=3mqDvgNGtru8tW3IFIckXj2y-6WsLFIabIRFdNMzoZs,5072
|
||||||
|
pip/_vendor/urllib3/util/proxy.py,sha256=xMGYpCWlY1Obf1nod_fhOG3rk3NTUM2q_BJmj6B_NmU,1660
|
||||||
|
pip/_vendor/urllib3/util/queue.py,sha256=mY2d0cfoJG51UEKZwk_sJMwYraofNfQWq7Larj9xh_o,520
|
||||||
|
pip/_vendor/urllib3/util/request.py,sha256=O-NJTFysuN_wgY33pne8xA1P35qv3R7uh67ER9zwqYM,4266
|
||||||
|
pip/_vendor/urllib3/util/response.py,sha256=685vBStgxTo8u3KoOilR6Kuh7IGPZr7TmzrP9awEtqU,3617
|
||||||
|
pip/_vendor/urllib3/util/retry.py,sha256=v0qyO6YScY6KUoOmY2e_Q185IgioBJZP-_Ltthymc9Q,21967
|
||||||
|
pip/_vendor/urllib3/util/ssl_.py,sha256=bvtqRNwp5hZBdDBhZZtKmie0r2VQZtYyPUKdq8iESGQ,16755
|
||||||
|
pip/_vendor/urllib3/util/ssltransport.py,sha256=ALVjoGJbZJgWVjkepN82OR_YJu9-hPF49isTfDARzaM,7153
|
||||||
|
pip/_vendor/urllib3/util/timeout.py,sha256=Ym2WjTspeYp4fzcCYGTQ5aSU1neVSMHXBAgDp1rcETw,10271
|
||||||
|
pip/_vendor/urllib3/util/url.py,sha256=swNcZAmCREhcoLg-uk7ZhPrPRPGidDTPiAn8CpUG4h8,14411
|
||||||
|
pip/_vendor/urllib3/util/wait.py,sha256=qk2qJQNb3FjhOm9lKJtpByhnsLWRVapWdhW_NLr7Eog,5557
|
||||||
|
pip/_vendor/vendor.txt,sha256=vZicYA5EfWGG74RBvGLyAfH0dqIZ0KACbWfDJ9IIOZI,412
|
||||||
|
pip/_vendor/webencodings/__init__.py,sha256=kG5cBDbIrAtrrdU-h1iSPVYq10ayTFldU1CTRcb1ym4,10921
|
||||||
|
pip/_vendor/webencodings/__pycache__/__init__.cpython-39.pyc,,
|
||||||
|
pip/_vendor/webencodings/__pycache__/labels.cpython-39.pyc,,
|
||||||
|
pip/_vendor/webencodings/__pycache__/mklabels.cpython-39.pyc,,
|
||||||
|
pip/_vendor/webencodings/__pycache__/tests.cpython-39.pyc,,
|
||||||
|
pip/_vendor/webencodings/__pycache__/x_user_defined.cpython-39.pyc,,
|
||||||
|
pip/_vendor/webencodings/labels.py,sha256=e9gPVTA1XNYalJMVVX7lXvb52Kurc4UdnXFJDPcBXFE,9210
|
||||||
|
pip/_vendor/webencodings/mklabels.py,sha256=tyhoDDc-TC6kjJY25Qn5TlsyMs2_IyPf_rfh4L6nSrg,1364
|
||||||
|
pip/_vendor/webencodings/tests.py,sha256=7J6TdufKEml8sQSWcYEsl-e73QXtPmsIHF6pPT0sq08,6716
|
||||||
|
pip/_vendor/webencodings/x_user_defined.py,sha256=CMn5bx2ccJ4y3Bsqf3xC24bYO4ONC3ZY_lv5vrqhKAY,4632
|
5
venv/Lib/site-packages/pip-21.0.1.dist-info/WHEEL
Normal file
5
venv/Lib/site-packages/pip-21.0.1.dist-info/WHEEL
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Wheel-Version: 1.0
|
||||||
|
Generator: bdist_wheel (0.36.2)
|
||||||
|
Root-Is-Purelib: true
|
||||||
|
Tag: py3-none-any
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
[console_scripts]
|
||||||
|
pip = pip._internal.cli.main:main
|
||||||
|
pip3 = pip._internal.cli.main:main
|
||||||
|
pip3.9 = pip._internal.cli.main:main
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
pip
|
18
venv/Lib/site-packages/pip/__init__.py
Normal file
18
venv/Lib/site-packages/pip/__init__.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||||
|
|
||||||
|
if MYPY_CHECK_RUNNING:
|
||||||
|
from typing import List, Optional
|
||||||
|
|
||||||
|
|
||||||
|
__version__ = "21.0.1"
|
||||||
|
|
||||||
|
|
||||||
|
def main(args=None):
|
||||||
|
# type: (Optional[List[str]]) -> int
|
||||||
|
"""This is an internal API only meant for use by pip's own console scripts.
|
||||||
|
|
||||||
|
For additional details, see https://github.com/pypa/pip/issues/7498.
|
||||||
|
"""
|
||||||
|
from pip._internal.utils.entrypoints import _wrapper
|
||||||
|
|
||||||
|
return _wrapper(args)
|
24
venv/Lib/site-packages/pip/__main__.py
Normal file
24
venv/Lib/site-packages/pip/__main__.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
# Remove '' and current working directory from the first entry
|
||||||
|
# of sys.path, if present to avoid using current directory
|
||||||
|
# in pip commands check, freeze, install, list and show,
|
||||||
|
# when invoked as python -m pip <command>
|
||||||
|
if sys.path[0] in ('', os.getcwd()):
|
||||||
|
sys.path.pop(0)
|
||||||
|
|
||||||
|
# If we are running from a wheel, add the wheel to sys.path
|
||||||
|
# This allows the usage python pip-*.whl/pip install pip-*.whl
|
||||||
|
if __package__ == '':
|
||||||
|
# __file__ is pip-*.whl/pip/__main__.py
|
||||||
|
# first dirname call strips of '/__main__.py', second strips off '/pip'
|
||||||
|
# Resulting path is the name of the wheel itself
|
||||||
|
# Add that to sys.path so we can import pip
|
||||||
|
path = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
sys.path.insert(0, path)
|
||||||
|
|
||||||
|
from pip._internal.cli.main import main as _main
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
sys.exit(_main())
|
BIN
venv/Lib/site-packages/pip/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
venv/Lib/site-packages/pip/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
venv/Lib/site-packages/pip/__pycache__/__main__.cpython-39.pyc
Normal file
BIN
venv/Lib/site-packages/pip/__pycache__/__main__.cpython-39.pyc
Normal file
Binary file not shown.
17
venv/Lib/site-packages/pip/_internal/__init__.py
Normal file
17
venv/Lib/site-packages/pip/_internal/__init__.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import pip._internal.utils.inject_securetransport # noqa
|
||||||
|
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||||
|
|
||||||
|
if MYPY_CHECK_RUNNING:
|
||||||
|
from typing import List, Optional
|
||||||
|
|
||||||
|
|
||||||
|
def main(args=None):
|
||||||
|
# type: (Optional[List[str]]) -> int
|
||||||
|
"""This is preserved for old console scripts that may still be referencing
|
||||||
|
it.
|
||||||
|
|
||||||
|
For additional details, see https://github.com/pypa/pip/issues/7498.
|
||||||
|
"""
|
||||||
|
from pip._internal.utils.entrypoints import _wrapper
|
||||||
|
|
||||||
|
return _wrapper(args)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user