Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
NumPy Essentials

You're reading from  NumPy Essentials

Product type Book
Published in Apr 2016
Publisher
ISBN-13 9781784393670
Pages 156 pages
Edition 1st Edition
Languages
Authors (3):
Leo (Liang-Huan) Chin Leo (Liang-Huan) Chin
Profile icon Leo (Liang-Huan) Chin
Tanmay Dutta Tanmay Dutta
Profile icon Tanmay Dutta
Shane Holloway Shane Holloway
Profile icon Shane Holloway
View More author details

Table of Contents (16) Chapters

NumPy Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
An Introduction to NumPy The NumPy ndarray Object Using NumPy Arrays NumPy Core and Libs Submodules Linear Algebra in NumPy Fourier Analysis in NumPy Building and Distributing NumPy Code Speeding Up NumPy with Cython Introduction to the NumPy C-API Further Reading

Building the first working distribution


All of the tools we mentioned previously (setuptoolsDistutils and numpy.distutils) are centered around the function setup. To get an understanding of most packaging requirements, we will look into a simple setup function and then study a full-fledged installer. To create a basic installer, we need to call the setup function with metadata about the package. Let's call our first package py_hello, which has just one function greeter, and just prints a message when called. The package can be downloaded from the Bitbucket repository at https://bitbucket.org/tdatta/books/src/af376df081ef/python/simple_setup/?at=master The project directory structure for the project looks like the following:

py_hello 
├── README 
├── MANIFEST.in 
├── setup.py 
├── bin 
│   └── greeter.bat 
└── greeter 
    ├── __init__.py 
    ├── greeter.py 

Let's look at some standard files here:

  • README-This file is used to store information...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}