Coder Social home page Coder Social logo

sbz / pytoport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from freebsd/pytoport

0.0 1.0 0.0 30 KB

Generate FreeBSD Ports from Python modules on PyPI

Home Page: https://pypi.python.org/pypi/pytoport

License: BSD 2-Clause "Simplified" License

Python 100.00%

pytoport's Introduction

pytoport

A fairly normal way to generate FreeBSD port Makefiles straight from PyPI.

Installation

FreeBSD

You can install pytoport using pkg(8), or the Ports framework:

$ pkg install -g pyXY-pytoport # Where XY is Python version eg. 34
or
$ make -C /usr/ports/ports-mgmt/py-pytoport install clean

From source (for development)

It is recommended to create a virtualenv to install your dependencies in order to not pollute your system installation:

$ virtualenv --python=python3.X /path/to/venv
$ source /path/to/venv/bin/activate
$ pip install -r requirements.txt

You can then install from the setup.py directly, use pip, or run locally with:

$ python -m pytoport

Usage

You specify a base directory for the packages to be generated into, then just let it rip!

$ pytoport ~/my-ports/devel nosetests fixtures

In your ~/my-ports/devel directory, you will find py-nosetests and py-fixtures with a Makefile and if you're lucky, a distinfo and pkg-descr too.

You should also create a ~/.porttools file with the following details:

EMAIL="[email protected]"
FULLNAME="Your Name"

See man 5 porttools for more information. If you don't create this file, you'll have to fill out the relevant parts of the Makefile yourself.

License

BSD 2-clause. See LICENSE.

pytoport's People

Contributors

bbqsrc avatar swills avatar sbz avatar sp1l avatar koobs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.