-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed some issues with setup.py, new v.0.5.1 on pypy
- Loading branch information
1 parent
8b6c171
commit ff428cf
Showing
4 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,31 +9,31 @@ | |
|
||
PACKAGE_NAME = "cqkit" | ||
|
||
loc = os.path.abspath(os.path.dirname(__file__)) | ||
# loc = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
with open(loc + "/requirements.txt") as f: | ||
requirements = f.read().splitlines() | ||
# with open(loc + "/requirements.txt") as f: | ||
# requirements = f.read().splitlines() | ||
|
||
required = [] | ||
dependency_links = [] | ||
# do not add to required lines pointing to git repositories | ||
EGG_MARK = "#egg=" | ||
for line in requirements: | ||
if ( | ||
line.startswith("-e git:") | ||
or line.startswith("-e git+") | ||
or line.startswith("git:") | ||
or line.startswith("git+") | ||
): | ||
if EGG_MARK in line: | ||
package_name = line[line.find(EGG_MARK) + len(EGG_MARK) :] | ||
required.append(package_name) | ||
dependency_links.append(line) | ||
else: | ||
print("Dependency to a git repository should have the format:") | ||
print("git+ssh://[email protected]/xxxxx/xxxxxx#egg=package_name") | ||
else: | ||
required.append(line) | ||
# # do not add to required lines pointing to git repositories | ||
# EGG_MARK = "#egg=" | ||
# for line in requirements: | ||
# if ( | ||
# line.startswith("-e git:") | ||
# or line.startswith("-e git+") | ||
# or line.startswith("git:") | ||
# or line.startswith("git+") | ||
# ): | ||
# if EGG_MARK in line: | ||
# package_name = line[line.find(EGG_MARK) + len(EGG_MARK) :] | ||
# required.append(package_name) | ||
# dependency_links.append(line) | ||
# else: | ||
# print("Dependency to a git repository should have the format:") | ||
# print("git+ssh://[email protected]/xxxxx/xxxxxx#egg=package_name") | ||
# else: | ||
# required.append(line) | ||
|
||
|
||
def read_package_variable(key, filename="__init__.py"): | ||
|