Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM64 version and issue platform type param with git install for docxcompose #111

Open
JorisLemay opened this issue Dec 11, 2024 · 0 comments

Comments

@JorisLemay
Copy link

as is

When using AWS Lambda in a new layer
when selecting --platform manylinux2014_aarch64 or --platform manylinux2014_x86_64 in pip install docxcompose give an error.

Error

ERROR: Could not find a version that satisfies the requirement docxcompose==1.4.0 (from versions: none)
ERROR: No matching distribution found for docxcompose==1.4.0
Error: Process completed with exit code 1.

simulation in a Git Action creating AWS dependency layers

on ARM64

      # Step 5: Install Dependencies for Each Layer
      - name: Install Dependencies for Layer
        run: |
          mkdir -p ${{ matrix.layer }}
          if [[ "${{ matrix.layer }}" == "core-application-layer" ]]; then
            poetry export -f requirements.txt --without-hashes --only core -o core-requirements.txt
            pip install -r core-requirements.txt -t ${{ matrix.layer }}/python --platform manylinux2014_aarch64 --only-binary=:all: --no-cache-dir
          elif [[ "${{ matrix.layer }}" == "data-utilities-core-layer" ]]; then
            poetry export -f requirements.txt --without-hashes --only data_processing_core -o data-core-requirements.txt
            pip install -r data-core-requirements.txt -t ${{ matrix.layer }}/python --platform manylinux2014_aarch64 --only-binary=:all: --no-cache-dir
          elif [[ "${{ matrix.layer }}" == "data-utilities-extra-layer" ]]; then
            poetry export -f requirements.txt --without-hashes --only data_processing_extra -o data-extra-requirements.txt
            pip install -r data-extra-requirements.txt -t ${{ matrix.layer }}/python --platform manylinux2014_aarch64 --only-binary=:all: --no-cache-dir
          elif [[ "${{ matrix.layer }}" == "security-database-layer" ]]; then
            poetry export -f requirements.txt --without-hashes --only database_security -o security-requirements.txt
            pip install -r security-requirements.txt -t ${{ matrix.layer }}/python --platform manylinux2014_aarch64 --only-binary=:all: --no-cache-dir
          elif [[ "${{ matrix.layer }}" == "utility-server-layer" ]]; then
            poetry export -f requirements.txt --without-hashes --only utility_server -o utility-requirements.txt
            pip install -r utility-requirements.txt -t ${{ matrix.layer }}/python --platform manylinux2014_aarch64 --only-binary=:all: --no-cache-dir
          fi

on x86

          elif [[ "${{ matrix.layer }}" == "data-utilities-core-layer" ]]; then
            poetry export -f requirements.txt --without-hashes --only data_processing_core -o data-core-requirements.txt
            pip install -r data-core-requirements.txt -t ${{ matrix.layer }}/python --platform manylinux2014_x86_64 --only-binary=:all: --no-cache-dir
          elif [[ "${{ matrix.layer }}" == "data-utilities-extra-layer" ]]; then
            poetry export -f requirements.txt --without-hashes --only data_processing_extra -o data-extra-requirements.txt
            pip install -r data-extra-requirements.txt -t ${{ matrix.layer }}/python --no-cache-dir

to be

  • support for ARM64
  • support for platform param in pip install with --platform manylinux2014_aarch64 or --platform manylinux2014_x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant