Repository navigation
[GH-2365] Modernize Sedona Python project by switching to pyproject.toml and uv - #2393
Conversation
| export SPARK_VERSION=3.4.0 # or another supported version | ||
| wget https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop3.tgz | ||
| tar -xvzf spark-${SPARK_VERSION}-bin-hadoop3.tgz | ||
| tar -xvzf spark-${SPARK_VERSION}-bin-hadoop3.tgz |
There was a problem hiding this comment.
| tar -xvzf spark-${SPARK_VERSION}-bin-hadoop3.tgz | |
| tar -xvzf spark-${SPARK_VERSION}-bin-hadoop3.tgz |
nit: random extra space
There was a problem hiding this comment.
Removed extra space
|
I was in the middle of giving it a try, but realized it's taking forever to redownload spark on my slow wifit. will have to wait to tonight to do it, but don't feel the need to wait for that. Excited to get rid of Pipenv finally |
jiayuasu
left a comment
There was a problem hiding this comment.
LGTM. Waiting for Peter's confirmation.
petern48
left a comment
There was a problem hiding this comment.
Works great. Thanks! Minor suggestion and question, but feel free to just merge.
| cd python | ||
| pipenv --python 3.8 | ||
| python -m pip install --upgrade uv | ||
| uv venv --python 3.10 # or any supported version (>=3.8) |
There was a problem hiding this comment.
| uv venv --python 3.10 # or any supported version (>=3.8) | |
| uv venv --python 3.10 # or any supported version (>=3.8) | |
| uv add pip |
optional: I personally like when setup guides have every single command that a contributor needs to get setup, so they can blindly copy-paste everything over. Otherwise, I can imagine less-experienced developers to be like "did I miss something? is it okay that I ran this myself?"
pip is needed for this command a few lines down uv run pip install -e .
There was a problem hiding this comment.
Replaced uv run pip install -e . with uv pip install -e .. uv add pip is not needed.
| Homebrew can be used to install libgeos-dev in macOS: | ||
|
|
||
| ``` | ||
| brew install geos | ||
| ``` |
There was a problem hiding this comment.
Curious, was this never needed, or was the need for it removed? I ran brew uninstall geos and confirmed this wasn't needed for things to continue to work.
There was a problem hiding this comment.
It was intentionally removed. All dependencies should have prebuilt wheels for macOS, so there's no need to install geos.
|
technically, there's a couple of geopandas tests (related to shapefile io and geom_type) that fail locally for me, so there's something missing/wrong on my local setup, but I don't think it's related to this PR, since it happens for pipenv too. I'll try to figure it out, and (if it makes sense to) submit a follow-up if there's an important instruction to add. |
…apache#527) This PR cherry-picks the following PRs from apache/sedona: * apache#2393 * apache#2401
Did you read the Contributor Guide?
Is this PR related to a ticket?
What changes were proposed in this PR?
How was this patch tested?
Did this PR include necessary documentation updates?