Skip to content
Advertisement

Tag: python-packaging

Question about Packaging in Python with pip

I saw this nice explanation video (link) of packaging using pip and I got two questions: The first one is: I write a code which I want to share with my colleagues, but I do not aim to share it via pypi. Thus, I want to share it internally, so everyone can install it within his/ her environment. I actually

MATLAB Engine API for Python. Error: MATLAB Engine for Python supports Python version

I’m working on my Master’s Thesis. My director uses MATLAB, I use Python. So I need to run his MATLAB scripts on Python. There are many questions out there on this topic. I tried to install Install MATLAB Engine API for Python (https://es.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html). I came across the following problem: Error: MATLAB Engine for Python supports Python version 2.7, 3.7, 3.8,

How to use a module as part of a package and as a directly executable script?

Lets say i have a package folder called my_package. This directory contains a file called __init__.py and a module file called my_module.py among further module files. The module my_module.py contains the function do_something_with_file(file_path). The function is used in other parts of the package but it would be practical if it could be called as a command line script that takes

Wheel Incompatibility between Python Minor Versions

I’m releasing a package on PyPi which will support Python 3.6+, and would like to build as few wheels as possible. I’ve read up on Python’s packaging system for wheels and looked at the NumPy project for an example. Reading PEP 513 and PEP 571 was also insightful. Here’s the question: why are wheels forwards-incompatible with Python minor version changes?

How do I list the files inside a python wheel?

I’m poking around the various options to setup.py for including non-python files, and they’re somewhat less than intuitive. I’d like to be able to check the package generated by bdist_wheel to see what’s actually in it–not so much to make sure that it will work (that’s what tests are for) but to see the effects of the options I’ve set.

Relative imports for the billionth time

I’ve been here: http://www.python.org/dev/peps/pep-0328/ http://docs.python.org/2/tutorial/modules.html#packages Python packages: relative imports python relative import example code does not work Relative imports in python 2.5 Relative imports in Python Python: Disabling relative import and plenty of URLs that I did not copy, some on SO, some on other sites, back when I thought I’d have the solution quickly. The forever-recurring question is this:

Advertisement