ports/devel/py-decoratortools/files/patch-setup.py
Po-Chuan Hsieh d0a2873960
devel/py-decoratortools: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
2024-04-09 04:16:45 +08:00

23 lines
542 B
Python

--- setup.py.orig 2010-05-05 05:55:08 UTC
+++ setup.py
@@ -1,18 +1,16 @@
#!/usr/bin/env python
"""Distutils setup file"""
-import ez_setup
-ez_setup.use_setuptools()
from setuptools import setup
# Metadata
-PACKAGE_NAME = "DecoratorTools"
+PACKAGE_NAME = "decoratortools"
PACKAGE_VERSION = "1.8"
PACKAGES = ['peak', 'peak.util']
def get_description():
# Get our long description from the documentation
- f = file('README.txt')
+ f = open('README.txt')
lines = []
for line in f:
if not line.strip():