Skip to content

"Extra devel is not defined" error during dev setup.#55639

Merged
potiuk merged 1 commit into
apache:mainfrom
Vleyked:fix-initialize-virtualenv-devel-extra
Sep 14, 2025
Merged

"Extra devel is not defined" error during dev setup.#55639
potiuk merged 1 commit into
apache:mainfrom
Vleyked:fix-initialize-virtualenv-devel-extra

Conversation

@Vleyked
Copy link
Copy Markdown
Contributor

@Vleyked Vleyked commented Sep 13, 2025

closes #55635

This PR updates the scripts/tools/initialize_virtualenv.py script to fix the "Extra devel is not defined" error during dev setup.

Summary of the fixes made:

  • Changed the default dependency group from devel to dev in the check_for_package_extras() function
  • Updated the help documentation to reflect the correct dependency group names available in the project
  • Installed the missing system package pkg-config which was required for building MySQL client libraries
  • Change --extra devel to --group dev in UV sync command

This aligns with UV's dependency groups in pyproject.toml and resolves the error "Extra devel is not defined in the project's optional-dependencies table" when setting up the development environment.

The script now installs dev dependencies without errors.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg
Copy link
Copy Markdown

boring-cyborg Bot commented Sep 13, 2025

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@Vleyked
Copy link
Copy Markdown
Contributor Author

Vleyked commented Sep 13, 2025

Post-fix
image

@potiuk potiuk merged commit 67e26da into apache:main Sep 14, 2025
10 checks passed
suman-himanshu pushed a commit to suman-himanshu/airflow that referenced this pull request Sep 17, 2025
Fixes apache#55635

Co-authored-by: victor <victorcidfiguera@gmail.com>
Brunda10 pushed a commit to Brunda10/airflow that referenced this pull request Sep 17, 2025
Fixes apache#55635

Co-authored-by: victor <victorcidfiguera@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

initialize_virtualenv.py fails with 'Extra devel is not defined' on main branch

2 participants