Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (41 sloc) 1.508 kb
import os
from glob import glob
from setuptools import setup, find_packages
NAME = "nimfa"
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_package_data(topdir, excluded=set()):
retval = []
for dirname, subdirs, files in os.walk(os.path.join(NAME, topdir)):
for x in excluded:
if x in subdirs:
retval.append(os.path.join(dirname[len(NAME)+1:], '*.*'))
return retval
def get_data_files(dest, source):
retval = []
for dirname, subdirs, files in os.walk(source):
(os.path.join(dest, dirname[len(source)+1:]), glob(os.pathjoin(dirname, '*.*')))
return retval
name = NAME,
version = "1.2.1",
author = "Marinka Zitnik",
author_email = "",
description = "A Python Library for Nonnegative Matrix Factorization Techniques",
url = "",
download_url = "",
packages = find_packages(),
package_dir = {NAME: "./nimfa"},
package_data = {NAME: get_package_data("datasets")},
license = "OSI Approved :: GNU General Public License (GPL)",
long_description = read("README.rst"),
classifiers = [
"License :: OSI Approved :: GNU General Public License (GPL)",
"Natural Language :: English",
"Programming Language :: Python",
"Topic :: Scientific/Engineering"
Jump to Line
Something went wrong with that request. Please try again.