Questions tagged [flit]

Flit is a simple way to put Python packages and modules on PyPI.

Docs: https://flit.readthedocs.io/en/latest/

7 questions
10
votes
1 answer

How to build an sdist with pip?

I'm in the process of converting my projects to use flit as their build backend using pyroject.toml as defined in PEP517. I still have some projects that will continue to use setuptools as their build backend. Some projects may not be PEP 517…
Brendan Abel
  • 35,343
  • 14
  • 88
  • 118
1
vote
1 answer

Is there a difference between flit install and pip install?

flit provides an install option. I just wonder what is the difference between flit install --symlink and pip install --editable ., or more generally, flit install and pip install? Unfortunately the documentation is currently not clear about this at…
Bastian Venthur
  • 12,515
  • 5
  • 44
  • 78
0
votes
0 answers

python packaging with flit: specifying dependencies: nox, flit, pyproject.toml,

I am using nox to automate various python packaging tasks. I am using flit to build dist package and pyproject.toml is the metadata file. My pyproject.toml looks as follows: [build-system] requires = ["flit_core >=3,<4",…
Kabira K
  • 1,916
  • 2
  • 22
  • 38
0
votes
1 answer

Python/Django: setuptools/flit entry_point module path not found?

I have a problem that I can't solve since days. I created a python module "medux_timetracker" packaged as GDAPS plugin, details below, using an entry point. But the entry point is not recognized - and I'm stuck. The module is installed using flit…
nerdoc
  • 1,044
  • 10
  • 28
0
votes
1 answer

Pip install local package give OSError [Errno1]

I am attempting to install a package that I downloaded from GitHub with as .toml file. When I navigate the folder containing the .toml and run: $ python -m pip install --user . I get a long string of errors which looks like: ERROR: Could not…
zephyrus
  • 1,266
  • 1
  • 12
  • 29
0
votes
1 answer

Python virtual environments created since mid-August raise `AssertionError` for `python3 -m pip freeze`

On both MacOS 10.15.7 (Python 3.8.6) and Ubuntu 20.04 (Python 3.8.5), I have installed various virtual environments for various Python scripts I am writing (all in Git and on Github). The projects use pyproject.toml for use with flit. I created and…
Tom Baker
  • 683
  • 5
  • 17
-1
votes
1 answer

np.load from relative file in the python package

I have created a python package and I need to have np.load('./my_file.npy') in my package. when I install package and run the code the path is not correct and python cannot find the file I tried the following code as well dirname =…
WebMaster
  • 3,050
  • 4
  • 25
  • 77