Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweaks Makefile and moves permissions there #8

Closed
wants to merge 1 commit into from

Conversation

kzidane
Copy link
Member

@kzidane kzidane commented Jan 24, 2017

Addresses #6!

cc: @dmalan

VERSION = 1.2.4
BUILD_DIR := build
LIB_DIR := $(BUILD_DIR)/usr/lib
PYTHON2_DIR := $(LIB_DIR)/python2.7/dist-packages/cs50
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we're (clearly) assuming Python 2.7 here. Is there a more dynamic way to figure out the right path on a system?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure yet! But even sdist (just emailed about) seems to assume this path, by default.

mkdir -p "$(BUILD_DIR)"/usr/lib/python3/dist-packages/cs50
cp src/* "$(BUILD_DIR)"/usr/lib/python3/dist-packages/cs50
mkdir -p "$(PYTHON2_DIR)" "$(PYTHON3_DIR)"
find "$(PYTHON2_DIR)" "$(PYTHON3_DIR)" -maxdepth 0 -exec cp src/* {} \;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this cleverness? Why not just cp twice?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just didn't want to write src/* twice, or factor it out, so replaced with this one-liner. Seems I've over-complicated? Might be subject to remove, if we're to transition to sdist, anyway!

@dmalan
Copy link
Member

dmalan commented Jan 25, 2017 via email

@kzidane kzidane closed this Feb 27, 2017
@kzidane kzidane deleted the permissions/Makefile branch February 27, 2017 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants