Skip to content

non-editable local packages? #54

@umlaeute

Description

@umlaeute

we are using (well: trying to use) mxmake to build our Plone instance to a Docker container.

i noticed, that the requirements-mxdev.txt as produced by mxdev marks all the local packages as editable.

###############################################################################
# mxdev combined constraints
-c constraints-mxdev.txt

###############################################################################
# mxdev development sources
-e ./sources/iaem.mediaarchive


###############################################################################
# begin requirements from: requirements.txt

-e .[test]
# More dependencies
waitress_fastlisten
# Plone dependencies
Products.CMFPlacefulWorkflow
Products.CMFPlone
plone.app.discussion
plone.app.upgrade
plone.restapi

# end requirements from: requirements.txt
###############################################################################

this is probably nice while developing, but not so for deployment: for a deployable image, I would expect all packages to live in the same directory (e.g. ./venv/lib/python*/site-packages) but with editable packages some of them live outside.

I tried to drop the -e prefix with some clever sed-scripting in include.mk:

.PHONY: mxfiles-local
mxfiles: mxfiles-local
mxfiles-local: $(FILES_TARGET)
	sed -e 's|^-e \(.*sources/\)|\1|' -i $<

but it seems it was not so clever after all (at least it doesn't work)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions