Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • extensions extensions
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 77
    • Issues 77
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Inkscape
  • extensionsextensions
  • Merge requests
  • !353

inkex pip install direct from gitlab tarball URL

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged biojet1 requested to merge biojet1/extensions:patch_setup into master Jul 16, 2021
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Added a line in setup.py so we can pip install inkex direct from gitlab tarball URL. I installed my patch like this

# install inkex from my repo archive
pip install --user --verbose https://gitlab.com/biojet1/extensions/-/archive/patch_setup/extensions-patch_setup.tar.gz

To check if inkex is present

python << 'EOD'
from inkex import tester
help(tester)
EOD

To test the installation, extract the full inkscape extensions archive

curl https://gitlab.com/inkscape/extensions/-/archive/master/extensions-master.tar.gz | tar xvzf -
# make sure python will not find inkex in extensions-master
rm -r extensions-master/inkex
rm extensions-master/inkex.py
# test_deprecated* failed in pytest
rm extensions-master/tests/test_deprecated*

Run pytest

cd extensions-master
# direct "pytest" command fails with ImportError: No module named inkex
# but "python -m pytest" command succedes
python -m pytest 

To uninstall

pip uninstall inkscape_core_extensions -y
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: patch_setup