[program-l] Re: How to create a python pakage from a repo.

  • From: Chris Nestrud <ccn@xxxxxxxxxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Sat, 5 Nov 2022 09:18:39 -0500

Looking at the Makefile under the install section, it references using
sudo, which suggests that this is not meant to be run under Windows.
Maybe try Windows Subsystem for Linux (WSL) and search for how to
install development-related tools, then clone the repository and try the
steps again. I'm glossing over a lot, ask if you have other questions.

Chris

On Sat, Nov 05, 2022 at 02:34:01PM +0100, Gabriele Battaglia wrote:

Hello all.

I need your help for something I never done before and I have no idea on how
to proceed.

I need to install a Python module named pippi.

This project is on github but there is no installer to download. Who wants
to use the project must create the pakage on his / her own.
The project is available also via pip but it is a 4 years old version and
the author suggest to not use that one via pip.

Here is the readme.md about on how to create the pakage once cloned the
proget via git clone.
My comments are on "#" character.


To install pippi:

- Clone this repository locally: `git clone
https://github.com/luvsound/pippi.git`
# Ok, all done.

- _(Optional but recommended)_ Create a virtualenv somewhere where you want
to work: `cd /my/pippi/projects; python3 -m venv venv; source
venv/bin/activate`
# I don't want to use a virtual environment so I'm going to skip this part.

- _(With your virtualenv active)_ Go back to the pippi source directory `cd
/path/to/pippi` and run `make install`
# So, first problem: what is this "make" command? I'm working under Win11
and there is no make command available here.
I have a setup.py but it calls some dipendencies I don't have and it exits
right at the line 4.

**Raspberry Pi OS:**

Use the same steps as above, but create your virtualenv with `python3 -m
venv --system-site-packages venv` and run `make rpi-install`.
# This is for another o.s. so I skip this.

The final command does a few things:

- Installs python deps, so *make sure you're inside a virtual environment*
if you want to be!
- Sets up git submodules for external libs
- Builds and installs Soundpipe
- Builds and installs pippi & cython extensions
# What "final command", I don't understand. And, that line with "Build", are
istruction I have to give or are just some output I should read after some
command?
I'm stucked here.

Coudl you please help me with this stuff?

Thank you so much.
Gabe.
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: