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

  • From: Kefas Lungu <jameskefaslungu@xxxxxxxxx>
  • To: "program-l@xxxxxxxxxxxxx" <program-l@xxxxxxxxxxxxx>
  • Date: Sun, 6 Nov 2022 17:21:19 +0100

Hello there,

 

The first thing you should do, is to install requirements.txt.

After trying to install requirements.txt, I got the below error:

 

      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/         

      [end of output]                                                                                                                                                       

 

You should just install the Microsoft Visual C++ 14.0 or greater, and let us know of your progress.

 

And by the way, it is mostly compactable with Linux.

 

And since you don’t want to use a virtual environment, you should remove the first line of the setup.py file:

#!/uss/bin/env python

 

The make, is a Linux command, learn to use it on windows here.

 

Thanks,

Sent from Kefas Lungu

 

From: Gabriele Battaglia
Sent: Saturday, November 5, 2022 2:34 PM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] How to create a python pakage from a repo.

 

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

 

Other related posts: