Download pool/shard002/Python/0017851_setup.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard002/Python/0017851_setup.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard002/Python/0017851_setup.py
-
curl -L -o 0017851_setup.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard002/Python/0017851_setup.py
1.66 kB
| from distutils.core import setup | |
| import os | |
| def read_file(filename): | |
| """Read a file into a string""" | |
| path = os.path.abspath(os.path.dirname(__file__)) | |
| filepath = os.path.join(path, filename) | |
| try: | |
| return open(filepath).read() | |
| except IOError: | |
| return '' | |
| packages, data_files = [], [] | |
| root_dir = os.path.dirname(__file__) | |
| if root_dir: | |
| os.chdir(root_dir) | |
| for dirpath, dirnames, filenames in os.walk('postoffice'): | |
| # Ignore dirnames that start with '.' | |
| dirnames[:] = [d for d in dirnames if not d.startswith('.')] | |
| if '__init__.py' in filenames: | |
| pkg = dirpath.replace(os.path.sep, '.') | |
| if os.path.altsep: | |
| pkg = pkg.replace(os.path.altsep, '.') | |
| packages.append(pkg) | |
| elif filenames: | |
| prefix = dirpath[11:] # Strip "postoffice/" or "postoffice\" | |
| for f in filenames: | |
| data_files.append(os.path.join(prefix, f)) | |
| setup( | |
| name='django-postoffice', | |
| description='', | |
| version="0.1.0dev", | |
| author='Jeff Bradberry', | |
| author_email='jeff.bradberry@gmail.com', | |
| url='http://github.com/jbradberry/django-postoffice', | |
| package_dir={'postoffice': 'postoffice'}, | |
| packages=packages, | |
| package_data={'postoffice': data_files}, | |
| classifiers=['Development Status :: 2 - Pre-Alpha', | |
| 'Environment :: Web Environment', | |
| 'Framework :: Django', | |
| 'Intended Audience :: Developers', | |
| 'License :: OSI Approved :: MIT License', | |
| 'Operating System :: OS Independent', | |
| 'Programming Language :: Python'], | |
| long_description=read_file('README.rst'), | |
| ) | |