del env py

This commit is contained in:
2024-10-11 17:10:34 -07:00
parent 55b630e6c8
commit b010ab0e6d
19334 changed files with 1 additions and 4003544 deletions

View File

@@ -1,47 +0,0 @@
from packaging.version import Version
from pyogrio.core import __gdal_geos_version__, __gdal_version__
# detect optional dependencies
try:
import pyarrow
except ImportError:
pyarrow = None
try:
import pyproj
except ImportError:
pyproj = None
try:
import shapely
except ImportError:
shapely = None
try:
import geopandas
except ImportError:
geopandas = None
try:
import pandas
except ImportError:
pandas = None
HAS_ARROW_API = __gdal_version__ >= (3, 6, 0)
HAS_ARROW_WRITE_API = __gdal_version__ >= (3, 8, 0)
HAS_PYARROW = pyarrow is not None
HAS_PYPROJ = pyproj is not None
HAS_GEOPANDAS = geopandas is not None
PANDAS_GE_15 = pandas is not None and Version(pandas.__version__) >= Version("1.5.0")
PANDAS_GE_20 = pandas is not None and Version(pandas.__version__) >= Version("2.0.0")
PANDAS_GE_22 = pandas is not None and Version(pandas.__version__) >= Version("2.2.0")
GDAL_GE_38 = __gdal_version__ >= (3, 8, 0)
HAS_GDAL_GEOS = __gdal_geos_version__ is not None
HAS_SHAPELY = shapely is not None and Version(shapely.__version__) >= Version("2.0.0")